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