This is a console-based smart shopping cart application where users can add and remove items, view their cart contents, and calculate the total cost of their purchases.
- Add and remove items from the cart
- View cart contents
- Calculate total cost
- Shop at different stores (Grocery Store and Clothing Store)
- Clone the repository.
- Navigate to the
ShoppingCartApplication
directory. - Run the application using
dotnet run
. - Follow the on-screen prompts to interact with the application.
Product.cs
: Defines theProduct
class andProductCategory
enum.ShoppingCart.cs
: Implements theShoppingCart
class to manage cart items.ProductGenerator.cs
: Generates random products.GroceryStore.cs
: Represents the grocery store.ClothingStore.cs
: Represents the clothing store.Program.cs
: Implements the user interface.ShoppingCartApplicationTests
: Contains unit tests for the application.
To run the unit tests, navigate to the ShoppingCartApplicationTests
directory and run `