11 instantiations of ActionEndpointFactory
Microsoft.AspNetCore.Mvc.Core.Test (4)
ApplicationModels\EndpointMetadataProviderTest.cs (1)
275var endpointFactory = new ActionEndpointFactory(serviceProvider.GetRequiredService<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), serviceProvider);
Routing\ActionEndpointDataSourceBaseTest.cs (1)
149var endpointFactory = new ActionEndpointFactory(serviceProvider.GetRequiredService<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), serviceProvider);
Routing\ActionEndpointFactoryTest.cs (2)
29Factory = new ActionEndpointFactory(Services.GetRequiredService<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), Services); 270var factory = new ActionEndpointFactory(Services.GetRequiredService<RoutePatternTransformer>(), new[] { requestDelegateFactory.Object }, Services);
Microsoft.AspNetCore.Mvc.RazorPages.Test (7)
Infrastructure\DefaultPageLoaderTest.cs (6)
38var endpointFactory = new ActionEndpointFactory(Mock.Of<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>()); 121var endpointFactory = new ActionEndpointFactory(transformer.Object, Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>()); 161var endpointFactory = new ActionEndpointFactory(Mock.Of<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>()); 238var endpointFactory = new ActionEndpointFactory(transformer.Object, Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>()); 300var endpointFactory = new ActionEndpointFactory(transformer.Object, Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>()); 337var endpointFactory = new ActionEndpointFactory(Mock.Of<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>());
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (1)
149var endpointFactory = new ActionEndpointFactory(serviceProvider.GetRequiredService<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), serviceProvider);
26 references to ActionEndpointFactory
Microsoft.AspNetCore.Mvc.Core (5)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
261services.TryAddSingleton<ActionEndpointFactory>();
Routing\ControllerActionEndpointDataSource.cs (2)
16private readonly ActionEndpointFactory _endpointFactory; 23ActionEndpointFactory endpointFactory,
Routing\ControllerActionEndpointDataSourceFactory.cs (2)
12private readonly ActionEndpointFactory _factory; 17ActionEndpointFactory factory)
Microsoft.AspNetCore.Mvc.Core.Test (6)
ApplicationModels\EndpointMetadataProviderTest.cs (1)
275var endpointFactory = new ActionEndpointFactory(serviceProvider.GetRequiredService<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), serviceProvider);
Routing\ActionEndpointDataSourceBaseTest.cs (2)
149var endpointFactory = new ActionEndpointFactory(serviceProvider.GetRequiredService<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), serviceProvider); 154private protected abstract ActionEndpointDataSourceBase CreateDataSource(IActionDescriptorCollectionProvider actions, ActionEndpointFactory endpointFactory);
Routing\ActionEndpointFactoryTest.cs (2)
32internal ActionEndpointFactory Factory { get; } 270var factory = new ActionEndpointFactory(Services.GetRequiredService<RoutePatternTransformer>(), new[] { requestDelegateFactory.Object }, Services);
Routing\ControllerActionEndpointDataSourceTest.cs (1)
551private protected override ActionEndpointDataSourceBase CreateDataSource(IActionDescriptorCollectionProvider actions, ActionEndpointFactory endpointFactory)
Microsoft.AspNetCore.Mvc.RazorPages (6)
Infrastructure\DefaultPageLoader.cs (2)
18private readonly ActionEndpointFactory _endpointFactory; 23ActionEndpointFactory endpointFactory,
Infrastructure\PageActionEndpointDataSource.cs (2)
16private readonly ActionEndpointFactory _endpointFactory; 22ActionEndpointFactory endpointFactory,
Infrastructure\PageActionEndpointDataSourceFactory.cs (2)
13private readonly ActionEndpointFactory _endpointFactory; 18ActionEndpointFactory endpointFactory)
Microsoft.AspNetCore.Mvc.RazorPages.Test (9)
Infrastructure\DefaultPageLoaderTest.cs (6)
38var endpointFactory = new ActionEndpointFactory(Mock.Of<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>()); 121var endpointFactory = new ActionEndpointFactory(transformer.Object, Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>()); 161var endpointFactory = new ActionEndpointFactory(Mock.Of<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>()); 238var endpointFactory = new ActionEndpointFactory(transformer.Object, Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>()); 300var endpointFactory = new ActionEndpointFactory(transformer.Object, Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>()); 337var endpointFactory = new ActionEndpointFactory(Mock.Of<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>());
Infrastructure\PageActionEndpointDataSourceTest.cs (1)
263private protected override ActionEndpointDataSourceBase CreateDataSource(IActionDescriptorCollectionProvider actions, ActionEndpointFactory endpointFactory)
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (2)
149var endpointFactory = new ActionEndpointFactory(serviceProvider.GetRequiredService<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), serviceProvider); 154private protected abstract ActionEndpointDataSourceBase CreateDataSource(IActionDescriptorCollectionProvider actions, ActionEndpointFactory endpointFactory);