This repo was created to share the code with evaluators and anybody who want to contribute. The design pattern used was Chain of Responsibility in the algorithm to order categories and its validations. The unit tests cover up to 95%, according to XUnit coverage.cobertura.xml file and HTML report, generated from these commands:
dotnet restore
cd .\TradeCategoryTest\
dotnet test --collect:"XPlat Code Coverage"
dotnet tool install -g dotnet-reportgenerator-globaltool
reportgenerator -reports:".\TradeCategoryTest\TestResults\{guid}\coverage.cobertura.xml" -targetdir:"coveragereport" -reporttypes:Html
Access coveragereport folder and open index.html file.