2 instantiations of SimpleService
Microsoft.AspNetCore.TestHost.Tests (2)
TestServerTests.cs (2)
127
.ConfigureTestServices(services => services.AddSingleton(new
SimpleService
{ Message = "OverridesConfigureServices" }))
140
services.AddSingleton(new
SimpleService
{ Message = "ConfigureServices" });
6 references to SimpleService
Microsoft.AspNetCore.TestHost.Tests (6)
TestServerTests.cs (6)
147
$"{ctx.RequestServices.GetRequiredService<
SimpleService
>().Message}, {ctx.RequestServices.GetRequiredService<TestService>().Message}"));
894
services.AddSingleton<
SimpleService
>();
905
var
service = app.ApplicationServices.GetRequiredService<
SimpleService
>();
914
var
service = app.ApplicationServices.GetService<
SimpleService
>();