.NET Core 2.1 application for suppliers and supplierRates. The structure of the projects look like the image below.
- Suppliers (API Interface)
- Suppliers.Services (Business Layer)
- Suppliers.Providers (Data Access Layer)
- Suppliers.Domain (Application Domain)
The solution of first exercise is here.
The models of second exersice Supplier and SupplierRate.
The third will be found in SupplierService method AddSupplierRate
git clone https://github.com/juanpe0504/suppliers.git
Open .sln file with Visual Studio 2017, restore all nuget packages and play IIS Express server. The application is using Swagger for documentations of models, responses and endpoints.
It is assumed that you have installed dotnet as command.
In the root folder, you will found runCoverage.ps1 file. Open powershell console and run it .\runCoverage.ps1.
After this procedure complete, the report summary HTML will be opened.
If not, you can find it on .\CodeCoverageHTML folder.
Other way, open the Test Explorer window on Visual Studio and Run All Tests. (this way will not generate the CodeCoverageHTML folder)