Skip to content

Glossary: ASP.NET Core

Test isolation

Also written: test database, ConfigureTestServices, UseSetting, WithWebHostBuilder

Each test starts from a known state. `WithWebHostBuilder` with `ConfigureTestServices` swaps a service and `UseSetting` swaps a setting, such as pointing at a test database.

Where the book teaches it

Related terms

WebApplicationFactory