Exercise 3-4: The Shopping Cart
This exercise is reasonably straightforward. You answers should look something like this. Stories: Add item to shopping cart Remove item from shopping cart Show running total for cart Tasks for Story 1: Add Item to Shopping Cart |
---|
Task | Estimated Time |
---|
Test for adding normal item to cart | 10 minutes | Test for adding null item to cart | 10 minutes | Test for adding non existent item to cart | 10 minutes | Code to make tests run | 20 minutes | User interface to add items | 15 minutes | Connect user interface to code | 10 minutes | Check into source control and integrate with rest of system | 5 minutes | Tasks for Story 2: Remove Item from Shopping Cart |
---|
Task | Estimated Time |
---|
Test for removing item from cart that is in cart | 10 minutes | Test for removing null item from cart | 10 minutes | Test for removing item from cart that is not in cart | 10 minutes | Code to make tests run | 20 minutes | User interface to remove items from the cart | 15 minutes | Connect user interface to code | 10 minutes | Check into source control and integrate with rest of system | 5 minutes | Tasks for Story 3: Show Running Total for Cart |
---|
Task | Estimated Time |
---|
Test for running total being zero when cart is empty | 10 minutes | Test for cart with one item in | 10 minutes | Test for cart with 1,000 items in | 10 minutes | Test for cart with multiples of the same item | 10 minutes | Code to make tests run | 20 minutes | User interface to display running total of items | 15 minutes | in the cart Connect user interface to code | 10 minutes | Check into source control and integrate with rest of system | 5 minutes | |