The Supermarket Checkout System is a C# project designed to simulate the checkout process at a supermarket. It supports adding items to a shopping cart, applying weekly special offers, and calculating the total cost of items in the cart. This system is built with flexibility in mind, allowing for easy updates to product prices and offers.
- Shopping Cart Management: Add and remove items from a shopping cart.
- Dynamic Special Offers: Apply different types of special offers to items, such as "3 for the price of 2" or "2 for a fixed price".
- Total Price Calculation: Automatically calculate the total price of the shopping cart, including any applicable special offers.
- .NET SDK (version 6.0 or later recommended)
- Download in zip form or clone the repository to your local machine.
- Navigate to the project's root directory:
cd SupermarketCheckout
- Build the project to resolve dependencies:
dotnet build
To run the application, use the following command from the project's root directory:
dotnet run --project SupermarketCheckout
To execute the unit tests and verify the system's functionality:
dotnet test