3 instantiations of TestServiceProvider
Microsoft.AspNetCore.OpenApi.Tests (3)
Services\OpenApiDocumentServiceTestsBase.cs (3)
156
new DefaultParameterPolicyFactory(Options.Create(options), new
TestServiceProvider
()),
162
var serviceProvider = new
TestServiceProvider
();
254
public static TestServiceProvider Instance { get; } = new
TestServiceProvider
();
8 references to TestServiceProvider
Microsoft.AspNetCore.OpenApi.Tests (8)
Services\OpenApiDocumentServiceTestsBase.cs (8)
37
var scopedService = ((
TestServiceProvider
)builder.ServiceProvider).CreateScope();
46
var scopedService = ((
TestServiceProvider
)builder.ServiceProvider).CreateScope();
89
((
TestServiceProvider
)builder.ServiceProvider).TestSchemaService = schemaService;
91
((
TestServiceProvider
)builder.ServiceProvider).TestDocumentService = documentService;
132
((
TestServiceProvider
)builder.ServiceProvider).TestSchemaService = schemaService;
134
((
TestServiceProvider
)builder.ServiceProvider).TestDocumentService = documentService;
162
var
serviceProvider = new TestServiceProvider();
254
public static
TestServiceProvider
Instance { get; } = new TestServiceProvider();