Please make sure the following are installed on your machine:
- .NET core 2
- Sql LocalDB
Following technologies have been used to implment the shopping cart discount solution:
- ASP.NET CORE 2
- EntityFramework Core 2 (Code First Approach)
- SQL LocalDB
- Xunit & Moq
- Visual Studio 2017 15.3
The following design patterns have been used:
- Decorator pattern Select after reading https://stackoverflow.com/questions/2253475/discount-strategy-in-shopping-cart-and-orders and https://softwareengineering.stackexchange.com/questions/130686/is-there-a-design-pattern-that-would-apply-to-discount-models
- Factory pattern - selected from my own experience
Things which can be improved further;
- Exception Logging
- Test coverage (not all covered due to limited time)
- UI improvement