December 2019
Intermediate to advanced
510 pages
11h 33m
English
This section covers some common testing practices used to test .NET Core applications. More specifically, it focuses on testing the repository part of the application. First of all, let's create a new test project by executing the following commands in the root folder of the project (the same folder as the .sln file):
mkdir testscd testsdotnet new xunit -n Catalog.Infrastructure.Testsdotnet sln ../Catalog.API.sln add Catalog.Infrastructure.Tests
As a result, we have created a new tests directory, which will contain all the test projects of the service. We also created a new Catalog.Infrastructure.Tests project using the xunit template.
xunit is a very popular test framework in the .NET ecosystem, and it is ...
Read now
Unlock full access