Vinted homework
Requires .NET Core 2.0 or later. Download and install SDK or Runtime from https://www.microsoft.com/net/download
Input file location: Discount\Discount\Resources\input.txt
To start via command line interface:
- Go to solution folder, \Discount subfolder (where Discount.csproj project file exists)
- dotnet run
To run tests:
- Go to solution folder, \Discount.Tests subfolder (where Discount.Tests.csproj project file exists)
- dotnet test
For code reading purposes entry point is Program.cs
To modify constants (shipping prices, providers, sizes, separators, etc.): Discount\Configuration\Constants.cs
To add new calculation rules:
- Define them in Discount\Domain\Utilities\CalculationExtensions.cs
- Call them from Discount\Domain\DiscountCalculator.cs line 50.