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