Month: December 2022

Master Integration Testing with ASP.NET 7 and XUnit

System Under Test (SUT) is the application (Razor Pages, MVC, Web ApI) that’s being tested The package AspNetCore.Mvc.Testing needs to be included in the project Test Web Host and test clients are created that are part of the WebApplicationsFactory class which is included in the AspNetCore.Mvc.Testing nuget package The test project should refer to the…
Read more

Why Should Integration Testing Excite You?

Integration testing assesses an app’s components on a broader level than unit testing. The main difference between integration testing and unit testing is that integration testing often includes application’s infrastructure components like database, file system, etc. When we work with unit tests, we mock these infrastructure components. These are then called fake or mock objects. But…
Read more