Smart Shopping Cart Application

Overview

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.

Features

  • Add and remove items from the cart
  • View cart contents
  • Calculate total cost
  • Shop at different stores (Grocery Store and Clothing Store)

How to Use

  1. Clone the repository.
  2. Navigate to the ShoppingCartApplication directory.
  3. Run the application using dotnet run.
  4. Follow the on-screen prompts to interact with the application.

Structure

  • Product.cs: Defines the Product class and ProductCategory enum.
  • ShoppingCart.cs: Implements the ShoppingCart 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.

Unit Tests

To run the unit tests, navigate to the ShoppingCartApplicationTests directory and run `