182 references to ActionContext
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
Filters\FilterContextTest.cs (1)
122: base(new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()), filters)
Microsoft.AspNetCore.Mvc.Core (4)
ControllerContext.cs (1)
56: base(httpContext, routeData, actionDescriptor)
Routing\ActionEndpointFactory.cs (1)
535var actionContext = new ActionContext(context, routeData, action);
Routing\MvcAttributeRouteHandler.cs (1)
73var actionContext = new ActionContext(context.HttpContext, routeData, actionDescriptor);
Routing\MvcRouteHandler.cs (1)
61var actionContext = new ActionContext(context.HttpContext, routeData, actionDescriptor);
Microsoft.AspNetCore.Mvc.Core.Test (93)
AcceptedAtActionResultTests.cs (3)
201var context = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 218var context = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 242return new ActionContext(
AcceptedAtRouteResultTests.cs (1)
150return new ActionContext(
AcceptedResultTests.cs (1)
107return new ActionContext(
Authorization\AuthorizeFilterTest.cs (2)
21private readonly ActionContext ActionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 626var actionContext = new ActionContext(
ChallengeResultTest.cs (2)
32var actionContext = new ActionContext(httpContext.Object, 57var actionContext = new ActionContext(httpContext.Object,
ConsumesAttributeTests.cs (3)
309var actionContext = new ActionContext(httpContext, new RouteData(), actionWithConstraint); 339var actionContext = new ActionContext(httpContext, new RouteData(), actionWithConstraint); 368var actionContext = new ActionContext(httpContext, new RouteData(), actionWithConstraint);
ContentResultTest.cs (1)
251return new ActionContext(httpContext,
ControllerBaseTest.cs (2)
2337var context = new ControllerContext(new ActionContext( 2457var context = new ControllerContext(new ActionContext(
Controllers\DefaultControllerActivatorTest.cs (2)
31new ActionContext( 131new ActionContext(
Controllers\ServiceBasedControllerActivatorTest.cs (2)
27var context = new ControllerContext(new ActionContext( 57new ActionContext(
CreatedAtActionResultTests.cs (1)
71return new ActionContext(httpContext,
CreatedAtRouteResultTests.cs (1)
84return new ActionContext(httpContext,
CreatedResultTests.cs (1)
117return new ActionContext(httpContext,
EmptyResultTests.cs (1)
23var context = new ActionContext(httpContext.Object, routeData, actionDescriptor);
FileContentResultTest.cs (1)
37var context = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
FileResultHelperTest.cs (1)
480return new ActionContext(context, new RouteData(), new ActionDescriptor());
FileStreamResultTest.cs (1)
29var actionContext = new ActionContext(httpContext, new(), new());
Filters\DisableRequestSizeLimitFilterTest.cs (1)
122return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
Filters\FilterFactoryTest.cs (1)
333return new ActionContext(new DefaultHttpContext(), new RouteData(), actionDescriptor);
Filters\FilterProviderTest.cs (1)
150return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
Filters\MiddlewareFilterTest.cs (1)
270var actionContext = new ActionContext(httpContext, new RouteData(), actionDescriptor);
Filters\RequestFormLimitsFilterTest.cs (1)
137return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
Filters\RequestSizeLimitFilterTest.cs (1)
128return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
Filters\ResponseCacheFilterExecutorTest.cs (1)
536new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()),
ForbidResultTest.cs (4)
31var actionContext = new ActionContext( 62var actionContext = new ActionContext( 96var actionContext = new ActionContext( 127var actionContext = new ActionContext(
Formatters\FormatFilterTest.cs (4)
76var ac = new ActionContext(httpContext.Object, data, new ActionDescriptor()); 330var actionContext = new ActionContext(httpContext.Object, new RouteData(), new ActionDescriptor()); 367var actionContext = new ActionContext(httpContext.Object, new RouteData(), new ActionDescriptor()); 449return new ActionContext(httpContext.Object, data, new ActionDescriptor());
Formatters\JsonOutputFormatterTestBase.cs (1)
171return new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
HttpActionResultTests.cs (1)
36var context = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
HttpOkObjectResultTest.cs (1)
57var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
HttpOkResultTest.cs (1)
32var context = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
HttpStatusCodeResultTests.cs (1)
26var context = new ActionContext(httpContext, routeData, actionDescriptor);
Infrastructure\ClientErrorResultFilterTest.cs (1)
116new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()),
Infrastructure\ControllerActionInvokerCacheTest.cs (1)
123var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), actionDescriptor);
Infrastructure\ControllerActionInvokerTest.cs (2)
1409var actionContext = new ActionContext(context.Object, new RouteData(), actionDescriptor); 1763var actionContext = new ActionContext(httpContext, routeData, actionDescriptor);
Infrastructure\JsonResultExecutorTestBase.cs (1)
493return new ActionContext(GetHttpContext(), new RouteData(), new ActionDescriptor());
Infrastructure\ModelStateInvalidFilterTest.cs (1)
75new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()),
LocalRedirectResultTest.cs (1)
133return new ActionContext(httpContext, routeData, new ActionDescriptor());
ModelBinding\FormFileValueProviderFactoryTest.cs (2)
108var actionContext = new ActionContext(context.Object, new RouteData(), new ActionDescriptor()); 118var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
ModelBinding\FormValueProviderFactoryTest.cs (2)
96var actionContext = new ActionContext(context.Object, new RouteData(), new ActionDescriptor()); 111var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
ModelBinding\JQueryFormValueProviderFactoryTest.cs (2)
181var actionContext = new ActionContext(context.Object, new RouteData(), new ActionDescriptor()); 196var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
ModelBinding\JQueryQueryStringValueProviderFactoryTest.cs (1)
119var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
ModelBinding\QueryStringValueProviderFactoryTest.cs (2)
18var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 37var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
PhysicalFileResultTest.cs (1)
32var actionContext = new ActionContext(httpContext, new(), new());
ProducesAttributeTests.cs (1)
193return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
RedirectResultTest.cs (1)
19var actionContext = new ActionContext(httpContext, new(), new());
RedirectToActionResultTest.cs (4)
36var actionContext = new ActionContext(httpContext.Object, new RouteData(), new ActionDescriptor()); 66var actionContext = new ActionContext(httpContext.Object, new RouteData(), new ActionDescriptor()); 95var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 123var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
RedirectToPageResultTest.cs (4)
28var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 57var actionContext = new ActionContext( 205var actionContext = new ActionContext( 256var actionContext = new ActionContext(
RedirectToRouteResultTest.cs (5)
34var actionContext = new ActionContext(httpContext.Object, 66var actionContext = new ActionContext(httpContext.Object, new RouteData(), new ActionDescriptor()); 102var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 124var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 149var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
RequireHttpsAttributeTests.cs (1)
229var actionContext = new ActionContext(ctx, new RouteData(), new ActionDescriptor());
ResponseCacheAttributeTest.cs (1)
348new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()),
Routing\UrlHelperBaseTest.cs (1)
133return new ActionContext(context, new RouteData(), new ActionDescriptor());
Routing\UrlHelperExtensionsTest.cs (3)
617var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 652var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 687var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
Routing\UrlHelperTestBase.cs (2)
1131var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 1138return new ActionContext(httpContext, routeData, new ActionDescriptor());
SignInResultTest.cs (3)
33var actionContext = new ActionContext( 60var actionContext = new ActionContext( 88var actionContext = new ActionContext(
SignOutResultTest.cs (3)
31var actionContext = new ActionContext( 57var actionContext = new ActionContext( 88var actionContext = new ActionContext(
VirtualFileResultTest.cs (1)
90var actionContext = new ActionContext(httpContext, new(), new());
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
CommonFilterTest.cs (1)
226return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
Microsoft.AspNetCore.Mvc.Cors.Test (4)
CorsAuthorizationFilterTest.cs (1)
152var actionContext = new ActionContext(
DisableCorsAuthorizationFilterTest.cs (3)
24new ActionContext(httpContext, new RouteData(), new ActionDescriptor()), 43new ActionContext(httpContext, new RouteData(), new ActionDescriptor()), 65new ActionContext(httpContext, new RouteData(), new ActionDescriptor()),
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
AuthorizeFilterIntegrationTest.cs (4)
40var actionContext = new ActionContext(GetHttpContext(), new RouteData(), new ControllerActionDescriptor()); 68var actionContext = new ActionContext(GetHttpContext(), new RouteData(), new ControllerActionDescriptor()); 99var actionContext = new ActionContext(GetHttpContext(), new RouteData(), new ControllerActionDescriptor()); 135var actionContext = new ActionContext(GetHttpContext(), new RouteData(), new ControllerActionDescriptor());
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
JsonResultTest.cs (1)
60return new ActionContext(GetHttpContext(), new RouteData(), new ActionDescriptor());
src\Mvc\Mvc.Core\test\Formatters\JsonOutputFormatterTestBase.cs (1)
171return new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
src\Mvc\Mvc.Core\test\Infrastructure\JsonResultExecutorTestBase.cs (1)
493return new ActionContext(GetHttpContext(), new RouteData(), new ActionDescriptor());
Microsoft.AspNetCore.Mvc.Razor.Test (9)
DefaultTagHelperFactoryTest.cs (1)
155var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
Infrastructure\DefaultTagHelperActivatorTest.cs (1)
41var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
RazorPageActivatorTest.cs (1)
259var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
RazorPageCreateModelExpressionTest.cs (1)
322var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
RazorPageCreateTagHelperTest.cs (1)
93var actionContext = new ActionContext(httpContext.Object, new RouteData(), new ActionDescriptor());
RazorPageTest.cs (1)
1419var actionContext = new ActionContext(
RazorViewEngineTest.cs (2)
2128return new ActionContext(httpContext, routeData, actionDescriptor); 2149return new ActionContext(httpContext, routeData, actionDescriptor);
RazorViewTest.cs (1)
1793var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
Microsoft.AspNetCore.Mvc.RazorPages (1)
PageContext.cs (1)
53: base(httpContext, routeData, actionDescriptor)
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Filters\PageViewDataAttributeFilterTest.cs (2)
24var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 43var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (1)
127var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new PageActionDescriptor());
Microsoft.AspNetCore.Mvc.TagHelpers.Test (10)
CacheTagHelperTest.cs (1)
931var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
CacheTagKeyTest.cs (1)
540var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
DistributedCacheTagHelperTest.cs (1)
738var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
FormTagHelperTest.cs (1)
1156var actionContext = new ActionContext(
ImageTagHelperTest.cs (1)
293var actionContext = new ActionContext(new DefaultHttpContext(), new AspNetCore.Routing.RouteData(), new ActionDescriptor());
LinkTagHelperTest.cs (1)
1124var actionContext = new ActionContext(new DefaultHttpContext(), new AspNetCore.Routing.RouteData(), new ActionDescriptor());
PartialTagHelperTest.cs (1)
841new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()),
ScriptTagHelperTest.cs (1)
1105var actionContext = new ActionContext(new DefaultHttpContext(), new AspNetCore.Routing.RouteData(), new ActionDescriptor());
ValidationMessageTagHelperTest.cs (1)
465var actionContext = new ActionContext(
ValidationSummaryTagHelperTest.cs (1)
649var actionContext = new ActionContext(
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (49)
ControllerTest.cs (1)
409var actionContext = new ActionContext(
DefaultHtmlGeneratorTest.cs (1)
1033var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
DefaultValidationHtmlAttributeProviderTest.cs (1)
253var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
Filters\AntiforgeryMiddlewareAuthorizationFilterTest.cs (4)
22var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 40var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 57var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 74var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
Filters\AutoValidateAntiforgeryTokenAuthorizationFilterTest.cs (3)
31var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 59var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 83var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
Filters\ControllerViewDataAttributeFilterTest.cs (2)
21var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 39var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
Filters\SaveTempDataFilterTest.cs (4)
303var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 321new ActionContext(httpContext, new RouteData(), new ActionDescriptor()), 351new ActionContext(httpContext, new RouteData(), new ActionDescriptor()), 374return new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
Filters\ValidateAntiforgeryTokenAuthorizationFilterTest.cs (3)
35var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 59var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 87var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
PageRemoteAttributeTest.cs (1)
215return new ActionContext(httpContext, routeData, new ActionDescriptor());
PartialViewResultExecutorTest.cs (1)
338return new ActionContext(new DefaultHttpContext(), routeData, new ControllerActionDescriptor() { ActionName = actionName });
PartialViewResultTest.cs (2)
45var actionContext = new ActionContext(new DefaultHttpContext() { RequestServices = Mock.Of<IServiceProvider>(), }, new RouteData(), new ActionDescriptor()); 228return new ActionContext(GetHttpContext(), new RouteData(), new ActionDescriptor());
RemoteAttributeBaseTest.cs (1)
482var actionContext = new ActionContext(
RemoteAttributeTest.cs (1)
481return new ActionContext(httpContext, routeData, new ActionDescriptor());
Rendering\DefaultTemplatesUtilities.cs (1)
229var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
Rendering\ViewContextTests.cs (2)
23new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()), 50new ActionContext(httpContext, new RouteData(), new ActionDescriptor()),
SkipStatusCodePagesAttributeTest.cs (1)
52return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
ViewComponentResultTest.cs (4)
54var actionContext = new ActionContext(new DefaultHttpContext() { RequestServices = Mock.Of<IServiceProvider>(), }, new RouteData(), new ActionDescriptor()); 419var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 461var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 699return new ActionContext(CreateHttpContext(diagnosticListener, descriptors), new RouteData(), new ActionDescriptor());
ViewComponents\ContentViewComponentResultTest.cs (1)
40var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
ViewComponents\HtmlContentViewComponentResultTest.cs (1)
40var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
ViewComponents\ViewComponentContextTest.cs (2)
22var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 85var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
ViewComponents\ViewViewComponentResultTest.cs (1)
521var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
ViewEngines\CompositeViewEngineTest.cs (1)
428return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
ViewExecutorTest.cs (7)
96var actionContext = new ActionContext( 137var actionContext = new ActionContext( 191var actionContext = new ActionContext( 228var actionContext = new ActionContext( 263var actionContext = new ActionContext( 311var actionContext = new ActionContext( 352var actionContext = new ActionContext(
ViewResultExecutorTest.cs (1)
328return new ActionContext(new DefaultHttpContext(), routeData, new ControllerActionDescriptor() { ActionName = actionName });
ViewResultTest.cs (2)
55var actionContext = new ActionContext(new DefaultHttpContext() { RequestServices = Mock.Of<IServiceProvider>(), }, new RouteData(), new ActionDescriptor()); 240return new ActionContext(GetHttpContext(), new RouteData(), new ActionDescriptor());