ASP.NET Core Web API with Unit Testing Part 3

preview_player
Показать описание
How to add Unit Testing in ASP.NET Core Web API

Unit tests should be readable.
No one wants to spend time trying to figure out what is that your test does. Ideally, this should be clear just by looking at the test name.

We will follow a simple rule for Unit-Testing.

Arrange

Act

Assert

Arrange mean that we need to arrange or set up the necessary parameters for the test.

Act means just do the action which might be calling a method, calling a controller.

Assert means just evaluate the result.

code

#.NET7
Microsoft Visual Studio Professional 2022
#sql #microsoft #net #visualstudio
#WPF #csharp #android #xamarin #sql #sqlite

Рекомендации по теме
welcome to shbcf.ru