2 instantiations of SimpleService
Microsoft.AspNetCore.TestHost.Tests (2)
TestServerTests.cs (2)
127.ConfigureTestServices(services => services.AddSingleton(new SimpleService { Message = "OverridesConfigureServices" })) 140services.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}")); 894services.AddSingleton<SimpleService>(); 905var service = app.ApplicationServices.GetRequiredService<SimpleService>(); 914var service = app.ApplicationServices.GetService<SimpleService>();