222 references to ApplicationBuilder
Microsoft.AspNetCore.Antiforgery.Test (2)
AntiforgeryApplicationBuilderExtensionsTest.cs (2)
18var builder = new ApplicationBuilder(services); 38var builder = new ApplicationBuilder(services);
Microsoft.AspNetCore.Authorization.Test (3)
AuthorizationAppBuilderExtensionsTests.cs (2)
21var app = new ApplicationBuilder(services); 49var app = new ApplicationBuilder(new ServiceCollection().BuildServiceProvider());
AuthorizationMiddlewareTests.cs (1)
297var appBuilder = new ApplicationBuilder(services);
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (1)
266_applicationBuilder = new ApplicationBuilder(ServiceProvider);
HotReloadServiceTests.cs (1)
302public IApplicationBuilder CreateApplicationBuilder() => new ApplicationBuilder(_serviceProvider);
RazorComponentEndpointDataSourceTest.cs (1)
318public IApplicationBuilder CreateApplicationBuilder() => new ApplicationBuilder(_serviceProvider);
Microsoft.AspNetCore.Components.Server.Tests (1)
ComponentEndpointRouteBuilderExtensionsTest.cs (1)
145return new ApplicationBuilder(serviceProvider);
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
JsonTranscodingServiceMethodProviderTests.cs (1)
257return new ApplicationBuilder(ServiceProvider);
Microsoft.AspNetCore.Grpc.Swagger.Tests (3)
GrpcSwaggerServiceExtensionsTests.cs (2)
32var app = new ApplicationBuilder(serviceProvider); 68var app = new ApplicationBuilder(serviceProvider);
Infrastructure\OpenApiTestHelpers.cs (1)
32var app = new ApplicationBuilder(serviceProvider);
Microsoft.AspNetCore.Hosting.Tests (15)
ConfigureBuilderTests.cs (1)
22var applicationBuilder = new ApplicationBuilder(services);
StartupManagerTests.cs (14)
300var app = new ApplicationBuilder(services); 323var app = new ApplicationBuilder(services); 349var app = new ApplicationBuilder(services); 396var app = new ApplicationBuilder(services); 459var app = new ApplicationBuilder(services); 476var app = new ApplicationBuilder(services); 494var app = new ApplicationBuilder(services); 511var app = new ApplicationBuilder(services); 526var app = new ApplicationBuilder(services); 540var app = new ApplicationBuilder(services); 555var app = new ApplicationBuilder(services); 571var app = new ApplicationBuilder(services); 587var app = new ApplicationBuilder(services); 633var app = new ApplicationBuilder(services);
Microsoft.AspNetCore.Http.Abstractions.Tests (39)
MapPathMiddlewareTests.cs (9)
38var builder = new ApplicationBuilder(serviceProvider: null!); 39var noMiddleware = new ApplicationBuilder(serviceProvider: null!).Build(); 57var builder = new ApplicationBuilder(serviceProvider: null!); 87var builder = new ApplicationBuilder(serviceProvider: null!); 115var builder = new ApplicationBuilder(serviceProvider: null!); 131Assert.Throws<ArgumentException>(() => new ApplicationBuilder(serviceProvider: null!).Map(matchPath, map => { }).Build()); 145var builder = new ApplicationBuilder(serviceProvider: null!); 167var builder = new ApplicationBuilder(serviceProvider: null!); 181var builder = new ApplicationBuilder(serviceProvider: null!);
MapPredicateMiddlewareTests.cs (6)
48var builder = new ApplicationBuilder(serviceProvider: null!); 49var noMiddleware = new ApplicationBuilder(serviceProvider: null!).Build(); 63var builder = new ApplicationBuilder(serviceProvider: null!); 75var builder = new ApplicationBuilder(serviceProvider: null!); 87var builder = new ApplicationBuilder(serviceProvider: null!); 99var builder = new ApplicationBuilder(serviceProvider: null!);
UseExtensionsTests.cs (2)
14var builder = new ApplicationBuilder(serviceProvider: null!); 51var builder = new ApplicationBuilder(serviceProvider: null!);
UseMiddlewareTest.cs (20)
15var builder = new ApplicationBuilder(new DummyServiceProvider()); 29var builder = new ApplicationBuilder(new DummyServiceProvider()); 43var builder = new ApplicationBuilder(new DummyServiceProvider()); 57var builder = new ApplicationBuilder(new DummyServiceProvider()); 71var builder = new ApplicationBuilder(new DummyServiceProvider()); 84var builder = new ApplicationBuilder(new DummyServiceProvider()); 97var builder = new ApplicationBuilder(new DummyServiceProvider()); 110var builder = new ApplicationBuilder(new DummyServiceProvider()); 123var builder = new ApplicationBuilder(new DummyServiceProvider()); 137var builder = new ApplicationBuilder(new DummyKeyedServiceProvider()); 151var builder = new ApplicationBuilder(new DummyKeyedServiceProvider()); 162var builder = new ApplicationBuilder(new DummyServiceProvider()); 174var builder = new ApplicationBuilder(new DummyServiceProvider()); 185var builder = new ApplicationBuilder(keyedServiceProvider); 196var builder = new ApplicationBuilder(keyedServiceProvider); 206var builder = new ApplicationBuilder(mockServiceProvider); 215var builder = new ApplicationBuilder(mockServiceProvider); 224var builder = new ApplicationBuilder(mockServiceProvider); 241var builder = new ApplicationBuilder(mockServiceProvider); 264var builder = new ApplicationBuilder(mockServiceProvider);
UsePathBaseExtensionsTests.cs (1)
240return new ApplicationBuilder(new DummyServiceProvider());
UseWhenExtensionsTests.cs (1)
110return new ApplicationBuilder(serviceProvider: null!);
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
164var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider ?? CreateServiceProvider()));
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
164var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider ?? CreateServiceProvider()));
Microsoft.AspNetCore.Http.Tests (8)
ApplicationBuilderTests.cs (8)
16var builder = new ApplicationBuilder(null); 28var builder = new ApplicationBuilder(null); 45var builder = new ApplicationBuilder(null); 53var builder = new ApplicationBuilder(null); 86var builder = new ApplicationBuilder(serviceProvider); 112var builder = new ApplicationBuilder(serviceProvider); 130var builder = new ApplicationBuilder(null); 159var builder1 = new ApplicationBuilder(null);
Microsoft.AspNetCore.HttpLogging.Tests (3)
HttpLoggingServicesExtensionsTests.cs (3)
30var appBuilder = new ApplicationBuilder(serviceProvider); 42var appBuilder = new ApplicationBuilder(serviceProvider); 56var appBuilder = new ApplicationBuilder(serviceProvider);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (8)
CustomSchemaTest.cs (1)
33_builder = new ApplicationBuilder(services.BuildServiceProvider());
DefaultPocoTest.cs (1)
33_builder = new ApplicationBuilder(provider);
EmptySchemaTest.cs (1)
33_builder = new ApplicationBuilder(services.BuildServiceProvider());
MaxKeyLengthSchemaTest.cs (1)
32_builder = new ApplicationBuilder(services.BuildServiceProvider());
UserOnlyCustomContextTest.cs (1)
77_builder = new ApplicationBuilder(provider);
UserOnlyTest.cs (1)
38_builder = new ApplicationBuilder(provider);
VersionOneSchemaTest.cs (1)
34_builder = new ApplicationBuilder(services.BuildServiceProvider());
VersionTwoSchemaTest.cs (1)
35_builder = new ApplicationBuilder(services.BuildServiceProvider());
Microsoft.AspNetCore.Identity.InMemory.Test (2)
ControllerTest.cs (2)
40var app = new ApplicationBuilder(services.BuildServiceProvider()); 91var app = new ApplicationBuilder(services.BuildServiceProvider());
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (9)
EndpointMetadataApiDescriptionProviderTest.cs (9)
1030var builder = new TestEndpointRouteBuilder(new ApplicationBuilder(TestServiceProvider.Instance)); 1090var builder = new TestEndpointRouteBuilder(new ApplicationBuilder(TestServiceProvider.Instance)); 1122var builder = new TestEndpointRouteBuilder(new ApplicationBuilder(TestServiceProvider.Instance)); 1154var builder = new TestEndpointRouteBuilder(new ApplicationBuilder(TestServiceProvider.Instance)); 1186var builder = new TestEndpointRouteBuilder(new ApplicationBuilder(TestServiceProvider.Instance)); 1215var builder = new TestEndpointRouteBuilder(new ApplicationBuilder(TestServiceProvider.Instance)); 1244var builder = new TestEndpointRouteBuilder(new ApplicationBuilder(TestServiceProvider.Instance)); 1332var builder = new TestEndpointRouteBuilder(new ApplicationBuilder(TestServiceProvider.Instance)); 1573new TestEndpointRouteBuilder(new ApplicationBuilder(TestServiceProvider.Instance));
Microsoft.AspNetCore.Mvc.Core.Test (10)
Builder\MvcApplicationBuilderExtensionsTest.cs (2)
43var appBuilder = new ApplicationBuilder(serviceProvider); 68var appBuilder = new ApplicationBuilder(serviceProvider);
Filters\MiddlewareFilterAttributeTest.cs (1)
20filterBuilderService.ApplicationBuilder = new ApplicationBuilder(serviceProvider);
Filters\MiddlewareFilterBuilderTest.cs (6)
22var appBuilder = new ApplicationBuilder(services.BuildServiceProvider()); 47var appBuilder = new ApplicationBuilder(services.BuildServiceProvider()); 80var appBuilder = new ApplicationBuilder(services.BuildServiceProvider()); 109var appBuilder = new ApplicationBuilder(services.BuildServiceProvider()); 161var appBuilder = new ApplicationBuilder(services.BuildServiceProvider()); 229var appBuilder = new ApplicationBuilder(services.BuildServiceProvider());
Filters\MiddlewareFilterTest.cs (1)
322var applicationBuilder = new ApplicationBuilder(applicationServices.BuildServiceProvider());
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
208_applicationBuilder = new ApplicationBuilder(ServiceProvider);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
281_applicationBuilder = new ApplicationBuilder(ServiceProvider);
Microsoft.AspNetCore.OpenApi.Tests (15)
Extensions\OpenApiEndpointRouteBuilderExtensionsTests.cs (7)
23var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider)); 40var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider)); 55var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider)); 86var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider)); 117var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider)); 142var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider)); 170var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider));
Extensions\OpenApiRouteHandlerBuilderExtensionTests.cs (7)
26var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider)); 49var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider)); 72var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider)); 100var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider)); 129var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider)); 161var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider)); 191var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider));
Services\OpenApiDocumentServiceTestsBase.cs (1)
164return new TestEndpointRouteBuilder(new ApplicationBuilder(serviceProvider));
Microsoft.AspNetCore.Owin (1)
OwinExtensions.cs (1)
111var builder = new ApplicationBuilder(serviceProvider: serviceProvider);
Microsoft.AspNetCore.Owin.Tests (1)
OwinExtensionTests.cs (1)
125var builder = new ApplicationBuilder(serviceProvider);
Microsoft.AspNetCore.RateLimiting.Tests (4)
RateLimitingApplicationBuilderExtensionsTests.cs (4)
22var appBuilder = new ApplicationBuilder(new ServiceCollection().BuildServiceProvider()); 31var appBuilder = new ApplicationBuilder(serviceProvider); 55var appBuilder = new ApplicationBuilder(serviceProvider); 72var appBuilder = new ApplicationBuilder(serviceProvider);
Microsoft.AspNetCore.Routing.Tests (89)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (11)
25var app = new ApplicationBuilder(Mock.Of<IServiceProvider>()); 42var app = new ApplicationBuilder(Mock.Of<IServiceProvider>()); 61var app = new ApplicationBuilder(services); 88var app = new ApplicationBuilder(services); 115var app = new ApplicationBuilder(services); 135var app = new ApplicationBuilder(services); 156var app = new ApplicationBuilder(services); 187var app = new ApplicationBuilder(services); 248var app = new ApplicationBuilder(services); 303var app = new ApplicationBuilder(services); 333var app = new ApplicationBuilder(services);
Builder\FallbackEndpointRouteBuilderExtensionsTest.cs (2)
19var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 35var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance));
Builder\GroupTest.cs (14)
25var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 56var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 90var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 124var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 136var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 154var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 183var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider)); 204var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 239var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 259var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 303var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 319var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 337var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 364var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance));
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (16)
64var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 87var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 114var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 149var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 179var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 228var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 263var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 329var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 351var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 369var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 386var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 402var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 434var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 457var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 477var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance)); 512var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(EmptyServiceProvider.Instance));
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (41)
67var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 95var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 115var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 135var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 173var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 213var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 224var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 252var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 263var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new ServiceCollection().AddSingleton<TodoService>().BuildServiceProvider())); 283var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new ServiceCollection().AddSingleton<TodoService>().BuildServiceProvider())); 303var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new ServiceCollection().AddSingleton<TodoService>().BuildServiceProvider())); 327var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new ServiceCollection().AddSingleton<TodoService>().BuildServiceProvider())); 347var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new ServiceCollection().AddSingleton<TodoService>().BuildServiceProvider())); 367var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new ServiceCollection().AddSingleton<TodoService>().BuildServiceProvider())); 391var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 411var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 431var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 452var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 483var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 507var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 549var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 593var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 603var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 626var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 651var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 661var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 681var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 699var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 719var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 739var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 755var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 774var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 790var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new EmptyServiceProvider())); 813var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider)); 839var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new ServiceCollection().BuildServiceProvider())); 917var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new ServiceCollection().BuildServiceProvider())); 933var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new ServiceCollection().BuildServiceProvider())); 961var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new ServiceCollection().BuildServiceProvider())); 993var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(appServiceCollection.BuildServiceProvider())); 1016var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new ServiceCollection().BuildServiceProvider())); 1038var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(new ServiceCollection().BuildServiceProvider()));
Builder\RoutingBuilderExtensionsTest.cs (4)
39var app = new ApplicationBuilder(Mock.Of<IServiceProvider>()); 56var app = new ApplicationBuilder(Mock.Of<IServiceProvider>()); 75var app = new ApplicationBuilder(services); 100var app = new ApplicationBuilder(services);
EndpointRoutingMiddlewareTest.cs (1)
409var applicationBuilder = new ApplicationBuilder(services.BuildServiceProvider());
Microsoft.AspNetCore.Testing.Tests (1)
FakeStartupTests.cs (1)
20sut.Configure(new ApplicationBuilder(new ServiceCollection().BuildServiceProvider()));