WebApplicationFactory

An ASP.NET Core testing class that starts your real application in memory and gives tests an HttpClient connected to it.

In more detail

Requests go through routing, middleware, binding, authorization and serialisation just as in production, without opening a network port. Replace only infrastructure the test must control, such as the database.

Related terms

Taught in

References