Assignment from Everest Engineering. Attached PDF of problem statement.
- Console application to calculate DeliveryCost of Package and DeliveryTime of Package.
- Unit test cases are present for both delivery cost and time calculation.
- New offers can be added on the fly by using appsettings.json(This can be moved to DB once it's in place).
- Supports Discount type as both Percentage and fixed.
cd CourierService
dotnet restore CourierService.sln
dotnet build CourierService.sln
dotnet test tests\CourierService.Fixture\CourierService.Fixture.csproj
Note: For Mac/Linux System please use / slash.
dotnet test tests/CourierService.Fixture/CourierService.Fixture.csproj
User input file stored in CourierService\sampleInput.txt
folder.
dotnet run --project src\DeliveryCostEstimatorCLI\DeliveryCostAndTimeEstimatorCLI.csproj
Note: For Mac/Linux System please use / slash.
dotnet run --project src/DeliveryCostEstimatorCLI/DeliveryCostAndTimeEstimatorCLI.csproj
requires - dotnet-core 2.1 framework
https://dotnet.microsoft.com/download/dotnet-core/2.1