in-memory host
The application running inside the test process with an in-memory server, so tests send real HTTP requests without a network.
In more detail
No real network port is opened, so tests are fast and cannot collide on ports. It is what WebApplicationFactory creates.
Related terms
- WebApplicationFactory — An ASP.NET Core testing class that starts your real application in memory and gives tests an HttpClient connected to it.
- integration test — A test that checks several real parts working together, such as the service talking to a real database.
Taught in
- Building Routes with Minimal APIs — Modern .NET Core, C# & Enterprise Microservices
- Integration Testing with WebApplicationFactory — Modern .NET Core, C# & Enterprise Microservices