This is the project with Integration Tests for the WebApi project.
- Create in root folder a file testsettings.json and past this text, change YOUR_CONNECTION_STRING with the connection string of your db test
{
"ConnectionStrings": { "myBlog": "YOUR_CONNECTION_STRING" }
}
Open the Test Explorer window (from the menu TEST -> Test explorer) select a specific test or run all.
Open the terminal and digit
dotnet test