Domain object to domain object - Preethi-Ayyamperumal/Ayyamperumal-Preethi-webdev-project GitHub Wiki

Use case 1: Orders containing products (Many to many)

steps

  1. login as alice
  2. search for a product and open the product page by clicking product's name
  3. click add to cart
  4. search for another product and open the product page by clicking product's name
  5. click add to cart
  6. click 'checkout' now
  7. click 'place order'
  8. Alert saying "Awesome! ORder successfully placed' with link to alice's orders
  9. click that link
  10. click on the latest order. clicking on that will have two products we added and its information.

Use case 2: Product containing Reviews (one to many)

steps

  1. login as alice
  2. search for a product and open the product page by clicking product's name
  3. click 'add review'
  4. Enter review and rating data
  5. save review
  6. login as ed
  7. search for same product and open the product page by clicking product's name
  8. click 'add review'
  9. Enter review and rating data
  10. save review
  11. Now the product page will have both reviews
  12. Add review will be hidden if user added review already

Use Case 3: Wishlist can have multiple products (many to many)

steps

  1. login as alice
  2. search for a product and open the product page by clicking product's name
  3. click 'Add to WishList'
  4. search for another product and open the product page by clicking product's name
  5. click 'Add to WishList'
  6. Both the products will be displayed on the wishlist page

Use Case 4: Carts can have multiple products (many to many)

steps

  1. login as alice
  2. search for a product and open the product page by clicking product's name
  3. click 'Add to Cart'
  4. search for another product and open the product page by clicking product's name
  5. click 'Add to Cart'
  6. Both the products will be displayed on the wishlist page 7)logout and login again
  7. go to 'profile' page 9)click cart glyphicon on top right, cart will have added products