Course Hero Logo

OnlineSupermarket-Spring-2016.docx - CSCI5220 Online...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 3 out of 11 pages.

CSCI5220Online Supermarket – TDD Case StudySpring 2016Online Supermarket – TDD Case StudyAn ASP.NET MVC web based application is needed to allow shoppers to shop online for specificgrocery items.The application’s features are described below.Admin CRUD FeaturesCreate Item:/item/create/Read Item:/item/details/<item id>Update Item:/item/edit/<item id>Delete Item:/item/delete/<item id>There must be a built in user in an ‘admin’ role.This user must have email ‘[email protected]and password ‘Pass123!Only the admin user is allowed to CRUD supermarket items.Whenthe admin user logs in, he or she is redirected to the items index page (/items/index/).Theadmin user has no supermarket profile (see below) to maintain.You are allowed to scaffold thecontroller and views to CRUD the items.Each item has the following properties:Id– the item’s id, primary key, auto-incrementName– the item’s name, required, maximum length: 50Type– the item’s type, one of: Cereal, Can Goods, Bread, CandyPrice– the item’s price, greater than zeroAmount in stock– must be at least 0 and at most 1000Title Bar FeatureThe title bar is visible on all pages.A nice image (you decide on something appropriate)Name of the application:Online SupermarketHome’ link – takes the user to the Home pageView Profile’ link – takes the shopper to the view profile page (not visible to adminusers)About’ link – takes the user to the about page – the about page simply states the nameand email of the developer – the email is a mailto linkMain Shopping/home/index/This action redirects admin users to the CRUD items index page.
CSCI5220Online Supermarket – TDD Case StudySpring 2016If a shopper has no supermarket profile, he or she is redirected to create his or her supermarketprofile.The shopper is presented with:4 ‘aisles’oCereal, Can Goods, Bread, CandyoEach aisle lists the associated items with the following: name, price, amount in stock,and aBuybutton.If the amount in stock is zero, then the Buy button is disabled.Number of items in shopping cart and the shopping cart’s total.This is displayed near thetop and bottom of the view.Note that if the user logs out and then logs back in then theshopping cart data is kept.AView Shopping CartlinkBuy Item/shoppingcart/buy/<item id>Admin users cannot access this action.This action displays the details of the item and allows the user to enter the quantity to buy.Thequantity to buy cannot exceed the item’s amount in stock. When the shopper submits this data,the item is added to the shopping cart, and the amount in stock is reduced by the quantity tobuy.The shopper is redirected to the main shopping page after purchase.There should be a link back to main shopping.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 11 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
NoProfessor
Tags

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture