8 references to FakeServer
Microsoft.AspNetCore.Hosting.Tests (8)
WebHostTests.cs (8)
144
var
server = (
FakeServer
)host.Services.GetRequiredService<IServer>();
167
var
server = (
FakeServer
)host.Services.GetRequiredService<IServer>();
909
var
server = (
FakeServer
)host.Services.GetRequiredService<IServer>();
912
var features =
FakeServer
.NewFeatureCollection();
1457
return builder.ConfigureServices(services => services.AddSingleton<IServer, WebHostTests.
FakeServer
>());