I have a ASP.NET Core project with some simple Razor pages and a Web API controller.
I\'m using Clean Architecture as a starting point. I\'ve renamed the project names,
It seems that WebApplicationFactory should use the real Startup class as the type of argument:
class TestWebApplicationFactory : WebApplicationFactory
{
protected override IWebHostBuilder CreateWebHostBuilder()
{
return WebHost.CreateDefaultBuilder();
}
}
Note that Startup is the type on true SUT code and TestableStartup is the TestingStartup configuration.