spooky-oysters / Bangazon-Command-Line-Application

0 stars 1 forks source link

Kb update product menu #34

Closed kimberly-bird closed 6 years ago

kimberly-bird commented 6 years ago

Link to Ticket

Closes #8 User should be able to update product

Description of Proposed Changes

Steps to Test

Outline the steps to test

git fetch --all
git checkout kb-updateProductMenu
cd bangazon-cli.Tests
dotnet restore
dotnet test

..
cd bangazon-cli
dotnet run
  1. Select 2 to activate a customer (create a customer, if needed)
  2. Select 4 to add a product to active customer - DON'T add to shopping cart yet
  3. Select 5 update product. Select product you would like to update. Follow prompts to update product name, price, description, quantity (for quantity, you should get the following prompt: "Update product quantity. Ex: 45 to add quantity. -45 to remove quantity.")
  4. Check database to make sure product was updated correctly
  5. From main menu, select 7 and select product to add to shopping cart
  6. Select 5 to update product. Select product you would like to update. Select 4 quantity to update. You should get the following prompt: "Add additional quantity to product"
  7. Check database to make sure product was updated correctly

Impacted Areas in Application

List general components of the application that this PR will affect:

Mentions @username

Tag users that need to review this code

Definition of Done

  1. The project must be fully documented. This includes the following:
    1. Complete README that documents the steps to install the code, how to install any dependencies, or system configuration needed.
    2. Every class must be documented with purpose, author, and methods.
    3. Every method must be documented with purpose and argument list - which itself must contain a short purpose for each argument.
  2. The project must be able to run fully, and without errors, on each teammate's system.
  3. Fulfills every requirement. Every line of code has been peer reviewed.
  4. For projects that require unit testing, core functionality must be identified and have at least one test for each.
krysmathis commented 6 years ago

Add a Console.Clear() before the step of selecting a product

kimberly-bird commented 6 years ago

Added clear console

krysmathis commented 6 years ago

👍

DreRandaci commented 6 years ago

👍