5 instantiations of TestService
Microsoft.AspNetCore.TestHost.Tests (5)
TestServerTests.cs (5)
128.ConfigureTestContainer<ThirdPartyContainer>(container => container.Services.AddSingleton(new TestService { Message = "OverridesConfigureContainer" })); 143container.Services.AddSingleton(new TestService { Message = "ConfigureContainer" }); 179var testService = new TestService(); 326var testService = new TestService(); 342var testService = new TestService();
13 references to TestService
Microsoft.AspNetCore.TestHost.Tests (13)
TestServerTests.cs (13)
147$"{ctx.RequestServices.GetRequiredService<SimpleService>().Message}, {ctx.RequestServices.GetRequiredService<TestService>().Message}")); 179var testService = new TestService(); 188Assert.Equal(testService, server.Host.Services.GetRequiredService<TestService>()); 326var testService = new TestService(); 335Assert.Equal(testService, testServer.Services.GetService<TestService>()); 342var testService = new TestService(); 358Assert.Equal(testService, testServer.Services.GetService<TestService>()); 404services.AddTransient<TestService>(); 430var service = context.RequestServices.GetService<TestService>(); 452.AddTransient<TestService>() 455var s = context.RequestServices.GetRequiredService<TestService>();