14 instantiations of TestService
Microsoft.AspNetCore.Http.Extensions.Tests (14)
RequestDelegateGenerator\RequestDelegateCreationTests.cs (2)
271
serviceCollection.AddSingleton<TestService>(new
TestService
());
300
serviceCollection.AddSingleton<TestService>(new
TestService
());
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBodyOrService.cs (3)
49
(serviceCollection) => serviceCollection.AddSingleton(new
TestService
())
78
var serviceProvider = CreateServiceProvider((serviceCollection) => serviceCollection.AddSingleton(new
TestService
()));
217
serviceCollection.AddSingleton(new
TestService
());
RequestDelegateGenerator\RequestDelegateCreationTests.KeyServices.cs (9)
21
var myOriginalService = new
TestService
();
37
var myOriginalService = new
TestService
();
62
var myOriginalService1 = new
TestService
();
63
var myOriginalService2 = new
TestService
();
87
var myOriginalService = new
TestService
();
107
var myOriginalService = new
TestService
();
160
var myOriginalService1 = new
TestService
();
187
var myOriginalService1 = new
TestService
();
188
var myOriginalService2 = new
TestService
();
17 references to TestService
Microsoft.AspNetCore.Http.Extensions.Tests (17)
RequestDelegateGenerator\RequestDelegateCreationTests.cs (2)
271
serviceCollection.AddSingleton<
TestService
>(new TestService());
300
serviceCollection.AddSingleton<
TestService
>(new TestService());
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBodyOrService.cs (1)
27
var implicitRequiredServiceSource = $"""app.MapPost("/", ({typeof(
TestService
)} svc) => svc.TestServiceMethod());""";
RequestDelegateGenerator\RequestDelegateCreationTests.KeyServices.cs (13)
21
var
myOriginalService = new TestService();
37
var
myOriginalService = new TestService();
62
var
myOriginalService1 = new TestService();
63
var
myOriginalService2 = new TestService();
87
var
myOriginalService = new TestService();
107
var
myOriginalService = new TestService();
160
var
myOriginalService1 = new TestService();
164
serviceCollection.AddKeyedScoped<
TestService
>("service2");
172
Assert.IsType<
TestService
>(httpContext.Items["arg2"]);
187
var
myOriginalService1 = new TestService();
188
var
myOriginalService2 = new TestService();
192
serviceCollection.AddKeyedScoped<
TestService
>("service2");
201
Assert.IsType<
TestService
>(httpContext.Items["arg2"]);
RequestDelegateGenerator\SharedTypes.cs (1)
719
public record struct ParameterRecordStructWithJsonBodyOrService(TodoStruct Todo,
TestService
Service);