4 types derived from ActionContext
Microsoft.AspNetCore.Mvc.Abstractions (1)
Filters\FilterContext.cs (1)
11public abstract class FilterContext : ActionContext
Microsoft.AspNetCore.Mvc.Core (1)
ControllerContext.cs (1)
17public class ControllerContext : ActionContext
Microsoft.AspNetCore.Mvc.RazorPages (1)
PageContext.cs (1)
17public class PageContext : ActionContext
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Rendering\ViewContext.cs (1)
17public class ViewContext : ActionContext
411 instantiations of 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 (3)
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 (234)
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,
DependencyInjection\ApiBehaviorOptionsSetupTest.cs (1)
146return new ActionContext
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 (5)
246var actionContext = new ActionContext(); 287var actionContext = new ActionContext(); 324var actionContext = new ActionContext(); 360var actionContext = new ActionContext(); 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\MiddlewareFilterBuilderTest.cs (3)
127var actionContext = new ActionContext( 190var actionContext = new ActionContext( 258var actionContext = new ActionContext(
Filters\MiddlewareFilterTest.cs (3)
220new ActionContext(httpContext, new RouteData(), new ActionDescriptor(), new ModelStateDictionary()), 228() => Task.FromResult(new ResourceExecutedContext(new ActionContext(), new List<IFilterMetadata>()))); 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());
HttpNotFoundObjectResultTest.cs (1)
41var actionContext = new ActionContext()
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\ActionMethodExecutorTest.cs (16)
23new ActionContext(), 49new ActionContext(), 75new ActionContext(), 100new ActionContext(), 129new ActionContext(), 158new ActionContext(), 187new ActionContext(), 212new ActionContext(), 238new ActionContext(), 264new ActionContext(), 289new ActionContext(), 315new ActionContext(), 344new ActionContext(), 373new ActionContext(), 398new ActionContext(), 427new ActionContext(),
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\ControllerActionInvokerProviderTest.cs (1)
27var context = new ActionInvokerProviderContext(new ActionContext()
Infrastructure\ControllerActionInvokerTest.cs (2)
1409var actionContext = new ActionContext(context.Object, new RouteData(), actionDescriptor); 1763var actionContext = new ActionContext(httpContext, routeData, actionDescriptor);
Infrastructure\FileStreamResultExecutorTest.cs (1)
18var actionContext = new ActionContext() { HttpContext = httpContext };
Infrastructure\JsonResultExecutorTestBase.cs (1)
493return new ActionContext(GetHttpContext(), new RouteData(), new ActionDescriptor());
Infrastructure\ModelStateInvalidFilterTest.cs (1)
75new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()),
Infrastructure\ObjectResultExecutorTest.cs (17)
25var actionContext = new ActionContext() { HttpContext = httpContext }; 53var actionContext = new ActionContext() { HttpContext = httpContext }; 76var actionContext = new ActionContext() { HttpContext = httpContext }; 98var actionContext = new ActionContext() { HttpContext = httpContext }; 119var actionContext = new ActionContext() { HttpContext = httpContext }; 144var actionContext = new ActionContext() { HttpContext = httpContext }; 166var actionContext = new ActionContext() { HttpContext = httpContext }; 188var actionContext = new ActionContext() { HttpContext = httpContext }; 214var actionContext = new ActionContext() { HttpContext = httpContext }; 239var actionContext = new ActionContext() { HttpContext = httpContext }; 259var actionContext = new ActionContext() 288var actionContext = new ActionContext() 311var actionContext = new ActionContext 347var actionContext = new ActionContext() { HttpContext = new DefaultHttpContext() }; 385var actionContext = new ActionContext() 422var actionContext = new ActionContext() 445var actionContext = new ActionContext()
Infrastructure\ProblemDetalsClientErrorFactoryTest.cs (1)
122return new ActionContext
LocalRedirectResultTest.cs (1)
133return new ActionContext(httpContext, routeData, new ActionDescriptor());
ModelBinding\Binders\ArrayModelBinderTest.cs (1)
231var actionContext = new ActionContext
ModelBinding\Binders\BinderTypeModelBinderTest.cs (1)
75ActionContext = new ActionContext()
ModelBinding\Binders\BodyModelBinderTests.cs (1)
691ActionContext = new ActionContext()
ModelBinding\Binders\CancellationTokenModelBinderTests.cs (1)
31ActionContext = new ActionContext()
ModelBinding\Binders\CollectionModelBinderTest.cs (1)
531var actionContext = new ActionContext()
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (5)
466ActionContext = new ActionContext() 493ActionContext = new ActionContext() 521ActionContext = new ActionContext() 548ActionContext = new ActionContext() 574ActionContext = new ActionContext()
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (5)
647ActionContext = new ActionContext() 674ActionContext = new ActionContext() 702ActionContext = new ActionContext() 729ActionContext = new ActionContext() 755ActionContext = new ActionContext()
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
622var actionContext = new ActionContext()
ModelBinding\Binders\FormCollectionModelBinderTest.cs (1)
71ActionContext = new ActionContext()
ModelBinding\Binders\FormFileModelBinderTest.cs (6)
52new ActionContext { HttpContext = httpContext }, 90new ActionContext { HttpContext = httpContext }, 132new ActionContext { HttpContext = httpContext }, 167new ActionContext { HttpContext = httpContext }, 203new ActionContext { HttpContext = httpContext }, 459ActionContext = new ActionContext()
ModelBinding\Binders\HeaderModelBinderTests.cs (1)
362ActionContext = new ActionContext()
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (1)
203ActionContext = new ActionContext()
ModelBinding\Binders\ServicesModelBinderTest.cs (1)
44ActionContext = new ActionContext()
ModelBinding\CompositeValueProviderTest.cs (1)
52var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor(), new ModelStateDictionary());
ModelBinding\DefaultModelBindingContextTest.cs (1)
160return new ActionContext()
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\ModelBindingHelperTest.cs (1)
1498return new ActionContext()
ModelBinding\QueryStringValueProviderFactoryTest.cs (2)
18var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 37var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
ModelBinding\UnsupportedContentTypeFilterTest.cs (4)
18new ActionContext 51new ActionContext 77new ActionContext 101new ActionContext
ModelBinding\Validation\DefaultObjectValidatorTests.cs (41)
25var actionContext = new ActionContext(); 51var actionContext = new ActionContext(); 78var actionContext = new ActionContext(); 107var actionContext = new ActionContext(); 135var actionContext = new ActionContext(); 156var actionContext = new ActionContext(); 188var actionContext = new ActionContext(); 220var actionContext = new ActionContext(); 252var actionContext = new ActionContext(); 294var actionContext = new ActionContext(); 326var actionContext = new ActionContext(); 358var actionContext = new ActionContext(); 399var actionContext = new ActionContext(); 433var actionContext = new ActionContext(); 470var actionContext = new ActionContext(); 515var actionContext = new ActionContext(); 587var actionContext = new ActionContext { HttpContext = httpContext.Object }; 617var actionContext = new ActionContext(); 645var actionContext = new ActionContext(); 681var actionContext = new ActionContext(); 716var actionContext = new ActionContext(); 753var actionContext = new ActionContext(); 786var actionContext = new ActionContext(); 829var actionContext = new ActionContext(); 904var actionContext = new ActionContext(); 945var actionContext = new ActionContext(); 979var actionContext = new ActionContext(); 1026var actionContext = new ActionContext(); 1086var actionContext = new ActionContext(); 1107var actionContext = new ActionContext(); 1127var actionContext = new ActionContext(); 1160var actionContext = new ActionContext(); 1201var actionContext = new ActionContext(); 1224var actionContext = new ActionContext(); 1270var actionContext = new ActionContext(); 1290var actionContext = new ActionContext(); 1309var actionContext = new ActionContext(); 1340var actionContext = new ActionContext(); 1362var actionContext = new ActionContext(); 1391var actionContext = new ActionContext(); 1421var actionContext = new ActionContext();
ObjectResultTests.cs (4)
47var actionContext = new ActionContext() 79var actionContext = new ActionContext() 108var actionContext = new ActionContext() 139var actionContext = new ActionContext()
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 (6)
28var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 57var actionContext = new ActionContext( 84var pageContext = new ActionContext 141var pageContext = 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 (16)
26var actionContext = new ActionContext 218var actionContext = new ActionContext 261var actionContext = new ActionContext 310var actionContext = new ActionContext 358var actionContext = new ActionContext 401var actionContext = new ActionContext 495var actionContext = new ActionContext 539var actionContext = new ActionContext 570var actionContext = new ActionContext 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()); 715var actionContext = new ActionContext 763var actionContext = new ActionContext 811var actionContext = new ActionContext 866return new ActionContext
Routing\UrlHelperTestBase.cs (3)
1081var urlHelper = new UrlHelper(new ActionContext 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.DataAnnotations.Test (48)
CompareAttributeAdapterTest.cs (6)
28var actionContext = new ActionContext(); 71var actionContext = new ActionContext(); 106var actionContext = new ActionContext(); 143var actionContext = new ActionContext(); 183var actionContext = new ActionContext(); 216var actionContext = new ActionContext();
DataAnnotationsModelValidatorTest.cs (10)
109actionContext: new ActionContext(), 139actionContext: new ActionContext(), 168actionContext: new ActionContext(), 200actionContext: new ActionContext(), 223actionContext: new ActionContext(), 248actionContext: new ActionContext(), 348actionContext: new ActionContext(), 380actionContext: new ActionContext(), 423actionContext: new ActionContext 525actionContext: new ActionContext(),
FileExtensionsAttributeAdapterTest.cs (4)
33var context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>()); 84var context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>()); 119var context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>()); 144var context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>());
MaxLengthAttributeAdapterTest.cs (5)
35var actionContext = new ActionContext(); 62var actionContext = new ActionContext(); 91var actionContext = new ActionContext(); 124var actionContext = new ActionContext(); 151var actionContext = new ActionContext();
MinLengthAttributeAdapterTest.cs (4)
35var actionContext = new ActionContext(); 62var actionContext = new ActionContext(); 90var actionContext = new ActionContext(); 116var actionContext = new ActionContext();
NumericClientModelValidatorTest.cs (5)
23var actionContext = new ActionContext(); 57var actionContext = new ActionContext(); 89var actionContext = new ActionContext(); 115var actionContext = new ActionContext(); 138var actionContext = new ActionContext();
RangeAttributeAdapterTest.cs (3)
29var actionContext = new ActionContext(); 65var actionContext = new ActionContext(); 93var actionContext = new ActionContext();
RequiredAttributeAdapterTest.cs (3)
36var actionContext = new ActionContext(); 61var actionContext = new ActionContext(); 86var actionContext = new ActionContext();
StringLengthAttributeAdapterTest.cs (5)
36var actionContext = new ActionContext(); 63var actionContext = new ActionContext(); 90var actionContext = new ActionContext(); 118var actionContext = new ActionContext(); 144var actionContext = new ActionContext();
ValidatableObjectAdapterTest.cs (2)
121new ActionContext(), 157new ActionContext(),
ValidationAttributeAdapterOfTAttributeTest.cs (1)
27var actionContext = new ActionContext();
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 (21)
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());
LanguageViewLocationExpanderTest.cs (3)
134new ActionContext(), 159new ActionContext(), 187new ActionContext(),
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 (11)
1614var actionContext = new ActionContext 1638var actionContext = new ActionContext 1661var actionContext = new ActionContext 1684var actionContext = new ActionContext 1711var actionContext = new ActionContext 1738new ActionContext(), 1763new ActionContext(), 1788new ActionContext(), 1815new ActionContext(), 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.Test (28)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (1)
988Assert.True(p.BindingInfo.RequestPredicate(new ActionContext
Filters\PageHandlerResultFilterTest.cs (4)
18var pageContext = new PageContext(new ActionContext( 56var pageContext = new PageContext(new ActionContext( 97var pageContext = new PageContext(new ActionContext( 139var pageContext = new PageContext(new ActionContext(
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());
Infrastructure\PageActionInvokerProviderTest.cs (9)
53var context = new ActionInvokerProviderContext(new ActionContext() 115var context = new ActionInvokerProviderContext(new ActionContext() 181var context = new ActionInvokerProviderContext(new ActionContext() 213var context = new ActionInvokerProviderContext(new ActionContext 229context = new ActionInvokerProviderContext(new ActionContext 259var context = new ActionInvokerProviderContext(new ActionContext 293var context = new ActionInvokerProviderContext(new ActionContext 330var context1 = new ActionInvokerProviderContext(new ActionContext() 347var context2 = new ActionInvokerProviderContext(new ActionContext()
Infrastructure\PageHandlerPageFilterTest.cs (4)
18var pageContext = new PageContext(new ActionContext( 57var pageContext = new PageContext(new ActionContext( 99var pageContext = new PageContext(new ActionContext( 142var pageContext = new PageContext(new ActionContext(
Infrastructure\PageViewLocationExpanderTest.cs (1)
203var actionContext = new ActionContext
PageModelTest.cs (5)
1724var actionContext = new ActionContext(httpContext, new RouteData(), new PageActionDescriptor(), modelState); 1792var actionContext = new ActionContext 1846var pageContext = new PageContext(new ActionContext( 1880var pageContext = new PageContext(new ActionContext( 1915var pageContext = new PageContext(new ActionContext(
PageTest.cs (1)
24var actionContext = new ActionContext(httpContext, new RouteData(), new PageActionDescriptor(), modelState);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (11)
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());
TestableHtmlGenerator.cs (1)
74var actionContext = new ActionContext(
ValidationMessageTagHelperTest.cs (1)
465var actionContext = new ActionContext(
ValidationSummaryTagHelperTest.cs (1)
649var actionContext = new ActionContext(
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (53)
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\ControllerSaveTempDataPropertyFilterTest.cs (4)
39new ActionContext 85new ActionContext 128new ActionContext 167new ActionContext
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());
1078 references to ActionContext
BasicWebSite (4)
Controllers\TestingController.cs (1)
106public override void ExecuteResult(ActionContext context)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (2)
13private readonly ActionContext _actionContext; 54private IUrlHelper GetUrlHelper(ActionContext context)
StoreIntoTempDataActionResult.cs (1)
11public Task ExecuteResultAsync(ActionContext context)
ControllersFromServicesClassLibrary (1)
ControllerWithConstructorInjection.cs (1)
18public ActionContext ActionContext { get; set; }
GenericHostWebSite (3)
Controllers\TestingController.cs (1)
92public override void ExecuteResult(ActionContext context)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (2)
13private readonly ActionContext _actionContext; 54private IUrlHelper GetUrlHelper(ActionContext context)
Microsoft.AspNetCore.Mvc.Abstractions (45)
Abstractions\ActionInvokerProviderContext.cs (4)
14/// <param name="actionContext">The <see cref="Mvc.ActionContext"/> to invoke.</param> 15public ActionInvokerProviderContext(ActionContext actionContext) 23/// Gets the <see cref="Mvc.ActionContext"/> to invoke. 25public ActionContext ActionContext { get; }
ActionContext.cs (6)
17/// Creates an empty <see cref="ActionContext"/>. 28/// Creates a new <see cref="ActionContext"/>. 30/// <param name="actionContext">The <see cref="ActionContext"/> to copy.</param> 31public ActionContext(ActionContext actionContext) 41/// Creates a new <see cref="ActionContext"/>. 55/// Creates a new <see cref="ActionContext"/>.
Filters\ActionExecutedContext.cs (2)
19/// <param name="actionContext">The <see cref="ActionContext"/>.</param> 23ActionContext actionContext,
Filters\ActionExecutingContext.cs (2)
17/// <param name="actionContext">The <see cref="ActionContext"/>.</param> 24ActionContext actionContext,
Filters\AuthorizationFilterContext.cs (2)
15/// <param name="actionContext">The <see cref="ActionContext"/>.</param> 18ActionContext actionContext,
Filters\ExceptionContext.cs (2)
20/// <param name="actionContext">The <see cref="ActionContext"/>.</param> 22public ExceptionContext(ActionContext actionContext, IList<IFilterMetadata> filters)
Filters\FilterContext.cs (2)
16/// <param name="actionContext">The <see cref="ActionContext"/>.</param> 19ActionContext actionContext,
Filters\FilterProviderContext.cs (2)
18public FilterProviderContext(ActionContext actionContext, IList<FilterItem> items) 30public ActionContext ActionContext { get; set; }
Filters\ResourceExecutedContext.cs (2)
19/// <param name="actionContext">The <see cref="ActionContext"/>.</param> 21public ResourceExecutedContext(ActionContext actionContext, IList<IFilterMetadata> filters)
Filters\ResourceExecutingContext.cs (2)
17/// <param name="actionContext">The <see cref="ActionContext"/>.</param> 21ActionContext actionContext,
Filters\ResultExecutedContext.cs (2)
19/// <param name="actionContext">The <see cref="ActionContext"/>.</param> 26ActionContext actionContext,
Filters\ResultExecutingContext.cs (2)
15/// <param name="actionContext">The <see cref="ActionContext"/>.</param> 20ActionContext actionContext,
IActionResult.cs (1)
18Task ExecuteResultAsync(ActionContext context);
IUrlHelper.cs (1)
18ActionContext ActionContext { get; }
ModelBinding\BindingInfo.cs (1)
87public Func<ActionContext, bool>? RequestPredicate { get; set; }
ModelBinding\IRequestPredicateProvider.cs (1)
16Func<ActionContext, bool> RequestPredicate { get; }
ModelBinding\ModelBindingContext.cs (2)
15/// Represents the <see cref="Mvc.ActionContext"/> associated with this context. 20public abstract ActionContext ActionContext { get; set; }
ModelBinding\Validation\ClientModelValidationContext.cs (2)
14/// <param name="actionContext">The <see cref="ActionContext"/> for validation.</param> 19ActionContext actionContext,
ModelBinding\Validation\ModelValidationContext.cs (2)
14/// <param name="actionContext">The <see cref="ActionContext"/> for validation.</param> 20ActionContext actionContext,
ModelBinding\Validation\ModelValidationContextBase.cs (3)
18ActionContext actionContext, 32/// Gets the <see cref="Mvc.ActionContext"/>. 34public ActionContext ActionContext { get; }
ModelBinding\ValueProviderFactoryContext.cs (2)
15public ValueProviderFactoryContext(ActionContext context) 25public ActionContext ActionContext { get; }
Microsoft.AspNetCore.Mvc.Core (182)
AcceptedAtActionResult.cs (1)
63public override void OnFormatting(ActionContext context)
AcceptedAtRouteResult.cs (1)
66public override void OnFormatting(ActionContext context)
AcceptedResult.cs (1)
69public override void OnFormatting(ActionContext context)
ActionContextAttribute.cs (1)
8/// <see cref="ActionContext"/> when creating the controller. The property must have a public
ActionResult.cs (3)
14/// The default implementation of this method calls the <see cref="ExecuteResult(ActionContext)"/> method and 20public virtual Task ExecuteResultAsync(ActionContext context) 32public virtual void ExecuteResult(ActionContext context)
ApiBehaviorOptions.cs (3)
18private Func<ActionContext, IActionResult> _invalidModelStateResponseFactory = default!; 24public Func<ActionContext, IActionResult> InvalidModelStateResponseFactory 32/// <see cref="ActionContext.ModelState"/> is invalid is suppressed. <seealso cref="InvalidModelStateResponseFactory"/>.
ApplicationModels\DefaultApplicationModelProvider.cs (2)
24private readonly Func<ActionContext, bool> _supportsAllRequests; 25private readonly Func<ActionContext, bool> _supportsNonGetRequests;
ApplicationModels\InvalidModelStateFilterConvention.cs (1)
11/// to <see cref="ActionModel"/> that responds to invalid <see cref="ActionContext.ModelState"/>
BindPropertyAttribute.cs (4)
22private static readonly Func<ActionContext, bool> _supportsAllRequests = (c) => true; 23private static readonly Func<ActionContext, bool> _supportsNonGetRequests = IsNonGetRequest; 81Func<ActionContext, bool> IRequestPredicateProvider.RequestPredicate 84private static bool IsNonGetRequest(ActionContext context)
ChallengeResult.cs (1)
91public override async Task ExecuteResultAsync(ActionContext context)
ContentResult.cs (1)
31public override Task ExecuteResultAsync(ActionContext context)
ControllerContext.cs (2)
34/// <param name="context">The <see cref="ActionContext"/> associated with the current request.</param> 35public ControllerContext(ActionContext context)
CreatedAtActionResult.cs (1)
63public override void OnFormatting(ActionContext context)
CreatedAtRouteResult.cs (1)
66public override void OnFormatting(ActionContext context)
CreatedResult.cs (1)
79public override void OnFormatting(ActionContext context)
DependencyInjection\ApiBehaviorOptionsSetup.cs (1)
30internal static IActionResult ProblemDetailsInvalidModelStateResponse(ProblemDetailsFactory problemDetailsFactory, ActionContext context)
Diagnostics\MvcDiagnostics.cs (8)
945public BeforeControllerActionMethodEventData(ActionContext actionContext, IReadOnlyDictionary<string, object> actionArguments, object controller) 955public ActionContext ActionContext { get; } 997public AfterControllerActionMethodEventData(ActionContext actionContext, IReadOnlyDictionary<string, object> arguments, object controller, IActionResult result) 1008public ActionContext ActionContext { get; } 1360public BeforeActionResultEventData(ActionContext actionContext, IActionResult result) 1369public ActionContext ActionContext { get; } 1403public AfterActionResultEventData(ActionContext actionContext, IActionResult result) 1412public ActionContext ActionContext { get; }
EmptyResult.cs (1)
13public override void ExecuteResult(ActionContext context)
FileContentResult.cs (1)
62public override Task ExecuteResultAsync(ActionContext context)
FileStreamResult.cs (1)
63public override Task ExecuteResultAsync(ActionContext context)
Filters\FilterFactory.cs (3)
12ActionContext actionContext) 63ActionContext actionContext, 93ActionContext actionContext,
ForbidResult.cs (1)
91public override async Task ExecuteResultAsync(ActionContext context)
Formatters\FormatFilter.cs (1)
37public virtual string? GetFormat(ActionContext context)
Formatters\IFormatFilter.cs (3)
14/// Gets the format value for the request associated with the provided <see cref="ActionContext"/>. 16/// <param name="context">The <see cref="ActionContext"/> associated with the current request.</param> 18string? GetFormat(ActionContext context);
HttpActionResult.cs (1)
29public override Task ExecuteResultAsync(ActionContext context)
Infrastructure\ActionContextAccessor.cs (4)
17private static readonly AsyncLocal<ActionContext> _storage = new AsyncLocal<ActionContext>(); 21public ActionContext? ActionContext 29public ActionContext? ActionContext
Infrastructure\ActionInvokerFactory.cs (1)
20public IActionInvoker? CreateInvoker(ActionContext actionContext)
Infrastructure\ActionMethodExecutor.cs (10)
33ActionContext actionContext, 69ActionContext actionContext, 97ActionContext actionContext, 126ActionContext actionContext, 159ActionContext actionContext, 192ActionContext actionContext, 220ActionContext actionContext, 251ActionContext actionContext, 290ActionContext actionContext, 328ActionContext actionContext,
Infrastructure\ContentResultExecutor.cs (1)
34public virtual async Task ExecuteAsync(ActionContext context, ContentResult result)
Infrastructure\ControllerActionInvoker.cs (2)
576public ActionExecutingContextSealed(ActionContext actionContext, IList<IFilterMetadata> filters, IDictionary<string, object?> actionArguments, object controller) : base(actionContext, filters, actionArguments, controller) { } 581public ActionExecutedContextSealed(ActionContext actionContext, IList<IFilterMetadata> filters, object controller) : base(actionContext, filters, controller) { }
Infrastructure\ControllerEndpointFilterInvocationContext.cs (2)
16ActionContext actionContext, 34internal ActionContext ActionContext { get; }
Infrastructure\FileContentResultExecutor.cs (2)
26public virtual Task ExecuteAsync(ActionContext context, FileContentResult result) 56protected virtual Task WriteFileAsync(ActionContext context, FileContentResult result, RangeItemHeaderValue? range, long rangeLength)
Infrastructure\FileResultExecutorBase.cs (2)
46/// <param name="context">The <see cref="ActionContext"/>.</param> 54ActionContext context,
Infrastructure\FileStreamResultExecutor.cs (3)
26public virtual async Task ExecuteAsync(ActionContext context, FileStreamResult result) 61/// <param name="context">The <see cref="ActionContext"/>.</param> 66ActionContext context,
Infrastructure\IActionContextAccessor.cs (1)
19ActionContext? ActionContext { get; set; }
Infrastructure\IActionInvokerFactory.cs (2)
25/// The <see cref="ActionContext"/> associated with the current request. 28IActionInvoker? CreateInvoker(ActionContext actionContext);
Infrastructure\IActionResultExecutor.cs (3)
17/// <see cref="IActionResult.ExecuteResultAsync(ActionContext)"/> method of the corresponding action result type. 25/// <param name="context">The <see cref="ActionContext"/> associated with the current request."/></param> 28Task ExecuteAsync(ActionContext context, TResult result);
Infrastructure\IClientErrorFactory.cs (2)
17/// <param name="actionContext">The <see cref="ActionContext"/>.</param> 20IActionResult? GetClientError(ActionContext actionContext, IClientErrorActionResult clientError);
Infrastructure\LocalRedirectResultExecutor.cs (1)
36public virtual Task ExecuteAsync(ActionContext context, LocalRedirectResult result)
Infrastructure\ModelStateInvalidFilter.cs (1)
13/// A <see cref="IActionFilter"/> that responds to invalid <see cref="ActionContext.ModelState"/>. This filter is
Infrastructure\ObjectResultExecutor.cs (4)
60/// <param name="context">The <see cref="ActionContext"/> for the current request.</param> 65public virtual Task ExecuteAsync(ActionContext context, ObjectResult result) 83private Task ExecuteAsyncCore(ActionContext context, ObjectResult result, Type? objectType, object? value) 122private static void InferContentTypes(ActionContext context, ObjectResult result)
Infrastructure\PhysicalFileResultExecutor.cs (2)
26public virtual Task ExecuteAsync(ActionContext context, PhysicalFileResult result) 58protected virtual Task WriteFileAsync(ActionContext context, PhysicalFileResult result, RangeItemHeaderValue? range, long rangeLength)
Infrastructure\ProblemDetailsClientErrorFactory.cs (1)
15public IActionResult GetClientError(ActionContext actionContext, IClientErrorActionResult clientError)
Infrastructure\RedirectResultExecutor.cs (1)
33public virtual Task ExecuteAsync(ActionContext context, RedirectResult result)
Infrastructure\RedirectToActionResultExecutor.cs (1)
34public virtual Task ExecuteAsync(ActionContext context, RedirectToActionResult result)
Infrastructure\RedirectToPageResultExecutor.cs (1)
34public virtual Task ExecuteAsync(ActionContext context, RedirectToPageResult result)
Infrastructure\RedirectToRouteResultExecutor.cs (1)
34public virtual Task ExecuteAsync(ActionContext context, RedirectToRouteResult result)
Infrastructure\ResourceInvoker.cs (10)
20protected readonly ActionContext _actionContext; 42ActionContext actionContext, 98var actionContext = invoker._actionContext; 272var actionContext = invoker._actionContext; 1566ActionContext actionContext, 1576ActionContext actionContext, 1586public ExceptionContextSealed(ActionContext actionContext, IList<IFilterMetadata> filters) : base(actionContext, filters) { } 1590public ResourceExecutedContextSealed(ActionContext actionContext, IList<IFilterMetadata> filters) : base(actionContext, filters) { } 1594public ResourceExecutingContextSealed(ActionContext actionContext, IList<IFilterMetadata> filters, IList<IValueProviderFactory> valueProviderFactories) : base(actionContext, filters, valueProviderFactories) { } 1598public AuthorizationFilterContextSealed(ActionContext actionContext, IList<IFilterMetadata> filters) : base(actionContext, filters) { }
Infrastructure\SystemTextJsonResultExecutor.cs (1)
34public async Task ExecuteAsync(ActionContext context, JsonResult result)
Infrastructure\VirtualFileResultExecutor.cs (2)
34public virtual Task ExecuteAsync(ActionContext context, VirtualFileResult result) 66protected virtual Task WriteFileAsync(ActionContext context, VirtualFileResult result, IFileInfo fileInfo, RangeItemHeaderValue? range, long rangeLength)
JsonResult.cs (1)
70public override Task ExecuteResultAsync(ActionContext context)
LocalRedirectResult.cs (1)
87public override Task ExecuteResultAsync(ActionContext context)
ModelBinding\CompositeValueProvider.cs (3)
58/// <param name="actionContext">The <see cref="ActionContext"/> associated with the current request.</param> 65ActionContext actionContext, 80ActionContext actionContext,
ModelBinding\DefaultModelBindingContext.cs (3)
21private ActionContext _actionContext = default!; 30public override ActionContext ActionContext 198ActionContext actionContext,
ModelBinding\ModelBindingHelper.cs (10)
30/// <param name="actionContext">The <see cref="ActionContext"/> for the current executing request.</param> 40ActionContext actionContext, 68/// <param name="actionContext">The <see cref="ActionContext"/> for the current executing request.</param> 80ActionContext actionContext, 113/// <param name="actionContext">The <see cref="ActionContext"/> for the current executing request.</param> 126ActionContext actionContext, 155/// <param name="actionContext">The <see cref="ActionContext"/> for the current executing request.</param> 166ActionContext actionContext, 194/// <param name="actionContext">The <see cref="ActionContext"/> for the current executing request.</param> 207ActionContext actionContext,
ModelBinding\ObjectModelValidator.cs (9)
39ActionContext actionContext, 59/// model state errors that <see cref="Validate(ActionContext, ValidationStateDictionary, string, object)"/> 62/// <param name="actionContext">The <see cref="ActionContext"/>.</param> 68ActionContext actionContext, 79/// model state errors that <see cref="Validate(ActionContext, ValidationStateDictionary, string, object)"/> 82/// <param name="actionContext">The <see cref="ActionContext"/>.</param> 89ActionContext actionContext, 109/// <param name="actionContext">The <see cref="ActionContext"/>.</param> 116ActionContext actionContext,
ModelBinding\ParameterBinder.cs (5)
57/// <param name="actionContext">The <see cref="ActionContext"/>.</param> 65ActionContext actionContext, 76/// <param name="actionContext">The <see cref="ActionContext"/>.</param> 85ActionContext actionContext, 173ActionContext actionContext,
ModelBinding\UnsupportedContentTypeFilter.cs (1)
13/// <see cref="ActionContext.ModelState"/> and short-circuits the pipeline
ModelBinding\Validation\DefaultObjectValidator.cs (1)
33ActionContext actionContext,
ModelBinding\Validation\IObjectModelValidator.cs (2)
16/// <param name="actionContext">The <see cref="ActionContext"/> associated with the current request.</param> 23ActionContext actionContext,
ModelBinding\Validation\ValidationVisitor.cs (3)
25/// <param name="actionContext">The <see cref="ActionContext"/> associated with the current request.</param> 31ActionContext actionContext, 70protected ActionContext Context { get; }
MvcCoreDiagnosticListenerExtensions.cs (8)
678ActionContext actionContext, 694private static void BeforeActionMethodImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, IReadOnlyDictionary<string, object> actionArguments, object controller) 723ActionContext actionContext, 740private static void AfterActionMethodImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, IReadOnlyDictionary<string, object> actionArguments, object controller, IActionResult result) 951ActionContext actionContext, 965private static void BeforeActionResultImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, IActionResult result) 977ActionContext actionContext, 991private static void AfterActionResultImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, IActionResult result)
ObjectResult.cs (2)
60public override Task ExecuteResultAsync(ActionContext context) 69public virtual void OnFormatting(ActionContext context)
PhysicalFileResult.cs (1)
54public override Task ExecuteResultAsync(ActionContext context)
RedirectResult.cs (1)
89public override Task ExecuteResultAsync(ActionContext context)
RedirectToActionResult.cs (1)
167public override Task ExecuteResultAsync(ActionContext context)
RedirectToPageResult.cs (1)
205public override Task ExecuteResultAsync(ActionContext context)
RedirectToRouteResult.cs (1)
159public override Task ExecuteResultAsync(ActionContext context)
Routing\ActionEndpointFactory.cs (1)
535var actionContext = new ActionContext(context, routeData, action);
Routing\EndpointRoutingUrlHelper.cs (1)
23ActionContext actionContext,
Routing\IUrlHelperFactory.cs (2)
14/// <param name="context">The <see cref="ActionContext"/> associated with the current request.</param> 16IUrlHelper GetUrlHelper(ActionContext context);
Routing\MvcAttributeRouteHandler.cs (1)
73var actionContext = new ActionContext(context.HttpContext, routeData, actionDescriptor);
Routing\MvcRouteHandler.cs (1)
61var actionContext = new ActionContext(context.HttpContext, routeData, actionDescriptor);
Routing\NormalizedRouteValue.cs (3)
13/// <param name="context">The <see cref="ActionContext"/>.</param> 17/// The casing of a route value in <see cref="ActionContext.RouteData"/> is determined by the client. 22public static string? GetNormalizedRouteValue(ActionContext context, string key)
Routing\UrlHelper.cs (2)
19/// <param name="actionContext">The <see cref="Mvc.ActionContext"/> for the current request.</param> 20public UrlHelper(ActionContext actionContext)
Routing\UrlHelperBase.cs (4)
29protected UrlHelperBase(ActionContext actionContext) 44public ActionContext ActionContext { get; } 260ActionContext? context, 375private static object CalculatePageName(ActionContext? context, RouteValueDictionary? ambientValues, string pageName)
Routing\UrlHelperFactory.cs (3)
17public IUrlHelper GetUrlHelper(ActionContext context) 26nameof(ActionContext.HttpContext), 27nameof(ActionContext)));
SignInResult.cs (1)
78public override Task ExecuteResultAsync(ActionContext context)
SignOutResult.cs (1)
90public override Task ExecuteResultAsync(ActionContext context)
StatusCodeResult.cs (1)
34public override void ExecuteResult(ActionContext context)
VirtualFileResult.cs (1)
60public override Task ExecuteResultAsync(ActionContext context)
Microsoft.AspNetCore.Mvc.Core.Test (308)
AcceptedAtActionResultTests.cs (8)
129var actionContext = GetActionContext(httpContext); 153var actionContext = GetActionContext(httpContext); 179var actionContext = GetActionContext(httpContext); 201var context = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 218var context = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 237private static ActionContext GetActionContext(HttpContext httpContext) 295public IUrlHelper GetUrlHelper(ActionContext context) => new ForwardingUrlHelper() { ActionValue = "abc" }; 302public ActionContext ActionContext => null;
AcceptedAtRouteResultTests.cs (4)
60var actionContext = GetActionContext(httpContext); 109var actionContext = GetActionContext(httpContext); 128var actionContext = GetActionContext(httpContext); 145private static ActionContext GetActionContext(HttpContext httpContext)
AcceptedResultTests.cs (4)
56var actionContext = GetActionContext(httpContext); 73var actionContext = GetActionContext(httpContext); 91var actionContext = GetActionContext(httpContext); 103private static ActionContext GetActionContext(HttpContext httpContext)
ApplicationModels\EndpointMetadataProviderTest.cs (2)
421public Task ExecuteResultAsync(ActionContext context) => throw new NotImplementedException(); 471public Task ExecuteResultAsync(ActionContext context) => throw new NotImplementedException();
ApplicationModels\InferParameterBindingInfoConventionTest.cs (2)
1137public static Func<ActionContext, bool> RequestPredicateStatic => (c) => true; 1140public Func<ActionContext, bool> RequestPredicate => RequestPredicateStatic;
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 (4)
36var actionContext = GetActionContext(httpContext); 131var actionContext = GetActionContext(httpContext); 233var actionContext = GetActionContext(httpContext); 246private static ActionContext GetActionContext(HttpContext httpContext)
Controllers\ControllerBinderDelegateProviderTest.cs (4)
539It.IsAny<ActionContext>(), 1144It.IsAny<ActionContext>(), 1151.Returns((ActionContext context, IModelBinder modelBinder, IValueProvider valueProvider, ParameterDescriptor descriptor, ModelMetadata metadata, object v, object c) => 1464ActionContext actionContext,
Controllers\DefaultControllerFactoryTest.cs (3)
252public ActionContext ActionContext { get; set; } 259internal ActionContext ActionContext { get; set; } 267public ActionContext ActionContext { get; set; }
CreatedAtActionResultTests.cs (3)
26var actionContext = GetActionContext(httpContext); 49var actionContext = GetActionContext(httpContext); 66private static ActionContext GetActionContext(HttpContext httpContext)
CreatedAtRouteResultTests.cs (3)
45var actionContext = GetActionContext(httpContext); 63var actionContext = GetActionContext(httpContext); 79private static ActionContext GetActionContext(HttpContext httpContext)
CreatedResultTests.cs (4)
67var actionContext = GetActionContext(httpContext); 83var actionContext = GetActionContext(httpContext); 100var actionContext = GetActionContext(httpContext); 112private static ActionContext GetActionContext(HttpContext httpContext)
DependencyInjection\ApiBehaviorOptionsSetupTest.cs (6)
34var actionContext = GetActionContext(); 55var actionContext = GetActionContext(); 76var actionContext = GetActionContext(); 101var actionContext = GetActionContext(); 118var actionContext = GetActionContext(); 144private static ActionContext GetActionContext()
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 (15)
35var actionContext = CreateActionContext(httpContext); 57var actionContext = CreateActionContext(httpContext); 86var actionContext = CreateActionContext(httpContext); 104var actionContext = CreateActionContext(httpContext); 126var actionContext = CreateActionContext(httpContext); 226var actionContext = CreateActionContext(httpContext); 246var actionContext = new ActionContext(); 287var actionContext = new ActionContext(); 324var actionContext = new ActionContext(); 360var actionContext = new ActionContext(); 406var actionContext = CreateActionContext(httpContext); 444var actionContext = CreateActionContext(httpContext); 478private static ActionContext CreateActionContext(HttpContext context) 497public override Task ExecuteResultAsync(ActionContext context) 511public Task ExecuteAsync(ActionContext context, EmptyFileResult result)
FileStreamResultTest.cs (1)
29var actionContext = new ActionContext(httpContext, new(), new());
Filters\DisableRequestSizeLimitFilterTest.cs (1)
120private static ActionContext CreateActionContext()
Filters\FilterFactoryTest.cs (9)
17var actionContext = CreateActionContext(new FilterDescriptor[0]); 35var actionContext = CreateActionContext(new[] { filter }); 58var actionContext = CreateActionContext(new[] 95var actionContext = CreateActionContext(new[] 121var actionContext = CreateActionContext(new[] 149var actionContext = CreateActionContext(new[] 180var actionContext = CreateActionContext(new[] 222var actionContext = CreateActionContext(new[] 326private static ActionContext CreateActionContext(FilterDescriptor[] filterDescriptors)
Filters\FilterProviderTest.cs (2)
141var actionContext = CreateActionContext(); 148private ActionContext CreateActionContext()
Filters\MiddlewareFilterBuilderTest.cs (3)
127var actionContext = new ActionContext( 190var actionContext = new ActionContext( 258var actionContext = new ActionContext(
Filters\MiddlewareFilterTest.cs (4)
270var actionContext = new ActionContext(httpContext, new RouteData(), actionDescriptor); 395ActionContext actionContext, 426ActionContext actionContext, 497public Task ExecuteResultAsync(ActionContext context)
Filters\RequestFormLimitsFilterTest.cs (1)
135private static ActionContext CreateActionContext()
Filters\RequestSizeLimitFilterTest.cs (1)
126private static ActionContext CreateActionContext()
ForbidResultTest.cs (4)
31var actionContext = new ActionContext( 62var actionContext = new ActionContext( 96var actionContext = new ActionContext( 127var actionContext = new ActionContext(
Formatters\FormatFilterTest.cs (5)
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()); 394public ActionContext MockActionContext { get; private set; } 426private ActionContext CreateMockActionContext(
Formatters\JsonOutputFormatterTestBase.cs (5)
39var actionContext = GetActionContext(MediaTypeHeaderValue.Parse(mediaType), body); 89var actionContext = GetActionContext(mediaType, body); 121var actionContext = GetActionContext(mediaType, body); 162protected static ActionContext GetActionContext( 183var actionContext = GetActionContext(mediaTypeHeaderValue, responseStream);
Formatters\SystemTextJsonOutputFormatterTest.cs (6)
43var actionContext = GetActionContext(mediaType, body); 71var actionContext = GetActionContext(mediaType, body); 97var actionContext = GetActionContext(mediaType, body); 124var actionContext = GetActionContext(mediaType, body); 189var actionContext = GetActionContext(mediaType, body); 229var actionContext = GetActionContext(mediaType, body);
HttpActionResultTests.cs (1)
36var context = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
HttpNotFoundObjectResultTest.cs (1)
41var actionContext = new ActionContext()
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 (2)
40.Setup(f => f.GetClientError(It.IsAny<ActionContext>(), It.IsAny<IClientErrorActionResult>())) 108f => f.GetClientError(It.IsAny<ActionContext>(), It.IsAny<IClientErrorActionResult>()) == Result);
Infrastructure\ControllerActionInvokerCacheTest.cs (1)
123var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), actionDescriptor);
Infrastructure\ControllerActionInvokerTest.cs (11)
157.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 323.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 360result.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 380.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 426result.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 650.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 651.Returns<ActionContext>((context) => Task.FromResult(true)) 686result.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 1409var actionContext = new ActionContext(context.Object, new RouteData(), actionDescriptor); 1763var actionContext = new ActionContext(httpContext, routeData, actionDescriptor); 1959public Task ExecuteResultAsync(ActionContext context)
Infrastructure\FileStreamResultExecutorTest.cs (1)
18var actionContext = new ActionContext() { HttpContext = httpContext };
Infrastructure\JsonResultExecutorTestBase.cs (21)
28var context = GetActionContext(); 48var context = GetActionContext(); 69var context = GetActionContext(); 93var context = GetActionContext(); 113var context = GetActionContext(); 138var context = GetActionContext(); 163var context = GetActionContext(); 186var context = GetActionContext(); 208var context = GetActionContext(); 237var context = GetActionContext(); 255var context = GetActionContext(); 279var context = GetActionContext(); 297var context = GetActionContext(); 315var context = GetActionContext(); 333var context = GetActionContext(); 351var context = GetActionContext(); 366var context = GetActionContext(); 397var context = GetActionContext(); 431var context = GetActionContext(); 451var context = GetActionContext(); 491protected static ActionContext GetActionContext()
Infrastructure\ObjectResultExecutorTest.cs (17)
25var actionContext = new ActionContext() { HttpContext = httpContext }; 53var actionContext = new ActionContext() { HttpContext = httpContext }; 76var actionContext = new ActionContext() { HttpContext = httpContext }; 98var actionContext = new ActionContext() { HttpContext = httpContext }; 119var actionContext = new ActionContext() { HttpContext = httpContext }; 144var actionContext = new ActionContext() { HttpContext = httpContext }; 166var actionContext = new ActionContext() { HttpContext = httpContext }; 188var actionContext = new ActionContext() { HttpContext = httpContext }; 214var actionContext = new ActionContext() { HttpContext = httpContext }; 239var actionContext = new ActionContext() { HttpContext = httpContext }; 259var actionContext = new ActionContext() 288var actionContext = new ActionContext() 311var actionContext = new ActionContext 347var actionContext = new ActionContext() { HttpContext = new DefaultHttpContext() }; 385var actionContext = new ActionContext() 422var actionContext = new ActionContext() 445var actionContext = new ActionContext()
Infrastructure\ProblemDetalsClientErrorFactoryTest.cs (1)
120private static ActionContext GetActionContext()
Infrastructure\SystemTextJsonResultExecutorTest.cs (1)
24var context = GetActionContext();
LocalRedirectResultTest.cs (4)
71var actionContext = GetActionContext(httpContext); 95var actionContext = GetActionContext(httpContext); 117var actionContext = GetActionContext(httpContext); 128private static ActionContext GetActionContext(HttpContext httpContext)
ModelBinding\Binders\ArrayModelBinderTest.cs (1)
231var actionContext = new ActionContext
ModelBinding\Binders\CollectionModelBinderTest.cs (1)
531var actionContext = new ActionContext()
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
622var actionContext = new ActionContext()
ModelBinding\CompositeValueProviderTest.cs (1)
52var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor(), new ModelStateDictionary());
ModelBinding\DefaultModelBindingContextTest.cs (1)
155private static ActionContext GetActionContext()
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\ModelBindingHelperTest.cs (2)
69var actionContext = GetActionContext(); 1493private static ActionContext GetActionContext()
ModelBinding\ParameterBinderTest.cs (2)
270It.IsAny<ActionContext>(), 274.Callback((ActionContext context, ValidationStateDictionary validationState, string prefix, object model) =>
ModelBinding\QueryStringValueProviderFactoryTest.cs (2)
18var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 37var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
ModelBinding\Validation\DefaultObjectValidatorTests.cs (41)
25var actionContext = new ActionContext(); 51var actionContext = new ActionContext(); 78var actionContext = new ActionContext(); 107var actionContext = new ActionContext(); 135var actionContext = new ActionContext(); 156var actionContext = new ActionContext(); 188var actionContext = new ActionContext(); 220var actionContext = new ActionContext(); 252var actionContext = new ActionContext(); 294var actionContext = new ActionContext(); 326var actionContext = new ActionContext(); 358var actionContext = new ActionContext(); 399var actionContext = new ActionContext(); 433var actionContext = new ActionContext(); 470var actionContext = new ActionContext(); 515var actionContext = new ActionContext(); 587var actionContext = new ActionContext { HttpContext = httpContext.Object }; 617var actionContext = new ActionContext(); 645var actionContext = new ActionContext(); 681var actionContext = new ActionContext(); 716var actionContext = new ActionContext(); 753var actionContext = new ActionContext(); 786var actionContext = new ActionContext(); 829var actionContext = new ActionContext(); 904var actionContext = new ActionContext(); 945var actionContext = new ActionContext(); 979var actionContext = new ActionContext(); 1026var actionContext = new ActionContext(); 1086var actionContext = new ActionContext(); 1107var actionContext = new ActionContext(); 1127var actionContext = new ActionContext(); 1160var actionContext = new ActionContext(); 1201var actionContext = new ActionContext(); 1224var actionContext = new ActionContext(); 1270var actionContext = new ActionContext(); 1290var actionContext = new ActionContext(); 1309var actionContext = new ActionContext(); 1340var actionContext = new ActionContext(); 1362var actionContext = new ActionContext(); 1391var actionContext = new ActionContext(); 1421var actionContext = new ActionContext();
ObjectResultTests.cs (4)
47var actionContext = new ActionContext() 79var actionContext = new ActionContext() 108var actionContext = new ActionContext() 139var actionContext = new ActionContext()
PhysicalFileResultTest.cs (1)
32var actionContext = new ActionContext(httpContext, new(), new());
ProducesAttributeTests.cs (3)
45.Setup(f => f.GetFormat(It.IsAny<ActionContext>())) 70.Setup(f => f.GetFormat(It.IsAny<ActionContext>())) 191private static ActionContext CreateActionContext()
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 (7)
28var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 57var actionContext = new ActionContext( 84var pageContext = new ActionContext 141var pageContext = new ActionContext 205var actionContext = new ActionContext( 256var actionContext = new ActionContext( 310private static IUrlHelper GetUrlHelper(ActionContext context, string returnValue)
RedirectToRouteResultTest.cs (6)
34var actionContext = new ActionContext(httpContext.Object, 66var actionContext = new ActionContext(httpContext.Object, new RouteData(), new ActionDescriptor()); 97.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>())) 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());
Routing\EndpointRoutingUrlHelperTest.cs (4)
138protected override IUrlHelper CreateUrlHelper(ActionContext actionContext) 166var actionContext = CreateActionContext(httpContext); 170private IUrlHelper CreateUrlHelper(IEnumerable<RouteEndpoint> endpoints, ActionContext actionContext = null) 186var actionContext = CreateActionContext(httpContext);
Routing\MvcRouteHandlerTests.cs (1)
93mockInvokerFactory.Setup(f => f.CreateInvoker(It.IsAny<ActionContext>()))
Routing\UrlHelperBaseTest.cs (3)
92var actionContext = CreateActionContext(httpContext); 131private static ActionContext CreateActionContext(HttpContext context) 138public TestUrlHelper(ActionContext actionContext) :
Routing\UrlHelperExtensionsTest.cs (19)
26var actionContext = new ActionContext 218var actionContext = new ActionContext 261var actionContext = new ActionContext 310var actionContext = new ActionContext 358var actionContext = new ActionContext 401var actionContext = new ActionContext 440var actionContext = GetActionContextForPage("/Dir1/Dir2/About"); 467var actionContext = GetActionContextForPage("/Dir1/Dir2/"); 495var actionContext = new ActionContext 539var actionContext = new ActionContext 570var actionContext = new ActionContext 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()); 715var actionContext = new ActionContext 763var actionContext = new ActionContext 811var actionContext = new ActionContext 851private static Mock<IUrlHelper> CreateMockUrlHelper(ActionContext context = null) 864private static ActionContext GetActionContextForPage(string page)
Routing\UrlHelperTest.cs (5)
23var actionContext = CreateActionContext(httpContext); 38var actionContext = CreateActionContext(httpContext); 44protected override IUrlHelper CreateUrlHelper(ActionContext actionContext) 55var actionContext = CreateActionContext(context); 78var actionContext = CreateActionContext(httpContext);
Routing\UrlHelperTestBase.cs (6)
895var actionContext = CreateActionContext(httpContext.Object); 913var actionContext = CreateActionContext(httpContext.Object); 936var actionContext = CreateActionContext(httpContext.Object); 1100protected abstract IUrlHelper CreateUrlHelper(ActionContext actionContext); 1131var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 1135protected virtual ActionContext CreateActionContext(HttpContext httpContext, RouteData routeData = null)
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 (40)
CommonFilterTest.cs (2)
224private static ActionContext CreateActionContext() 231public Task ExecuteResultAsync(ActionContext context)
CommonResourceInvokerTest.cs (38)
82.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 109expected.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 124.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 153expected.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 195.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 226result.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 261.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 292result.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 329.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 361result.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 397.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 429result.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 438.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 439.Returns<ActionContext>((context) => Task.FromResult(true)) 470result.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 497.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 498.Returns<ActionContext>((context) => Task.FromResult(true)) 516result.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 525.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 526.Returns<ActionContext>((context) => Task.FromResult(true)) 553result.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 617.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 641challenge.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 651.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 681challenge.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 738.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 739.Returns<ActionContext>((context) => Task.FromResult(true)) 757challenge.Verify(c => c.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 960.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 978result.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 993.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 1023result.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 1038.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 1065result.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 1524.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 1568expected.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 1626.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 1665expected.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once());
Microsoft.AspNetCore.Mvc.Cors.Test (1)
CorsAuthorizationFilterTest.cs (1)
152var actionContext = new ActionContext(
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (32)
CompareAttributeAdapterTest.cs (6)
28var actionContext = new ActionContext(); 71var actionContext = new ActionContext(); 106var actionContext = new ActionContext(); 143var actionContext = new ActionContext(); 183var actionContext = new ActionContext(); 216var actionContext = new ActionContext();
MaxLengthAttributeAdapterTest.cs (5)
35var actionContext = new ActionContext(); 62var actionContext = new ActionContext(); 91var actionContext = new ActionContext(); 124var actionContext = new ActionContext(); 151var actionContext = new ActionContext();
MinLengthAttributeAdapterTest.cs (4)
35var actionContext = new ActionContext(); 62var actionContext = new ActionContext(); 90var actionContext = new ActionContext(); 116var actionContext = new ActionContext();
NumericClientModelValidatorTest.cs (5)
23var actionContext = new ActionContext(); 57var actionContext = new ActionContext(); 89var actionContext = new ActionContext(); 115var actionContext = new ActionContext(); 138var actionContext = new ActionContext();
RangeAttributeAdapterTest.cs (3)
29var actionContext = new ActionContext(); 65var actionContext = new ActionContext(); 93var actionContext = new ActionContext();
RequiredAttributeAdapterTest.cs (3)
36var actionContext = new ActionContext(); 61var actionContext = new ActionContext(); 86var actionContext = new ActionContext();
StringLengthAttributeAdapterTest.cs (5)
36var actionContext = new ActionContext(); 63var actionContext = new ActionContext(); 90var actionContext = new ActionContext(); 118var actionContext = new ActionContext(); 144var actionContext = new ActionContext();
ValidationAttributeAdapterOfTAttributeTest.cs (1)
27var actionContext = new ActionContext();
Microsoft.AspNetCore.Mvc.IntegrationTests (8)
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());
TryValidateModelIntegrationTest.cs (2)
201ActionContext actionContext, 208ActionContext actionContext,
ValidationIntegrationTests.cs (2)
2585public override ValidationVisitor GetValidationVisitor(ActionContext actionContext, IModelValidatorProvider validatorProvider, ValidatorCache validatorCache, IModelMetadataProvider metadataProvider, ValidationStateDictionary validationState) 2594public RecordingValidationVisitor(ActionContext actionContext, IModelValidatorProvider validatorProvider, ValidatorCache validatorCache, IModelMetadataProvider metadataProvider, ValidationStateDictionary validationState)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
NewtonsoftJsonResultExecutor.cs (2)
65/// <param name="context">The <see cref="ActionContext"/>.</param> 68public async Task ExecuteAsync(ActionContext context, JsonResult result)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (32)
JsonResultTest.cs (2)
26var context = GetActionContext(); 58private static ActionContext GetActionContext()
NewtonsoftJsonOutputFormatterTest.cs (3)
442var actionContext = GetActionContext(mediaType, body); 487var actionContext = GetActionContext(mediaType, body); 521var actionContext = GetActionContext(mediaType, body);
NewtonsoftJsonResultExecutorTest.cs (1)
38var context = GetActionContext();
src\Mvc\Mvc.Core\test\Formatters\JsonOutputFormatterTestBase.cs (5)
39var actionContext = GetActionContext(MediaTypeHeaderValue.Parse(mediaType), body); 89var actionContext = GetActionContext(mediaType, body); 121var actionContext = GetActionContext(mediaType, body); 162protected static ActionContext GetActionContext( 183var actionContext = GetActionContext(mediaTypeHeaderValue, responseStream);
src\Mvc\Mvc.Core\test\Infrastructure\JsonResultExecutorTestBase.cs (21)
28var context = GetActionContext(); 48var context = GetActionContext(); 69var context = GetActionContext(); 93var context = GetActionContext(); 113var context = GetActionContext(); 138var context = GetActionContext(); 163var context = GetActionContext(); 186var context = GetActionContext(); 208var context = GetActionContext(); 237var context = GetActionContext(); 255var context = GetActionContext(); 279var context = GetActionContext(); 297var context = GetActionContext(); 315var context = GetActionContext(); 333var context = GetActionContext(); 351var context = GetActionContext(); 366var context = GetActionContext(); 397var context = GetActionContext(); 431var context = GetActionContext(); 451var context = GetActionContext(); 491protected static ActionContext GetActionContext()
Microsoft.AspNetCore.Mvc.Razor (12)
IRazorViewEngine.cs (2)
17/// <param name="context">The <see cref="ActionContext"/>.</param> 25RazorPageResult FindPage(ActionContext context, string pageName);
RazorViewEngine.cs (6)
94/// <param name="context">The <see cref="ActionContext"/>.</param> 98/// The casing of a route value in <see cref="ActionContext.RouteData"/> is determined by the client. 103public static string? GetNormalizedRouteValue(ActionContext context, string key) 107public RazorPageResult FindPage(ActionContext context, string pageName) 154public ViewEngineResult FindView(ActionContext context, string viewName, bool isMainPage) 217ActionContext actionContext,
ViewLocationExpanderContext.cs (4)
14/// <param name="actionContext">The <see cref="Mvc.ActionContext"/> for the current executing action.</param> 21ActionContext actionContext, 40/// Gets the <see cref="Mvc.ActionContext"/> for the current executing action. 42public ActionContext ActionContext { get; }
Microsoft.AspNetCore.Mvc.Razor.Test (73)
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 (2)
840.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>())) 1419var actionContext = new ActionContext(
RazorViewEngineTest.cs (51)
57var context = GetActionContext(_controllerTestContext); 72var context = GetActionContext(_controllerTestContext); 87var context = GetActionContext(_controllerTestContext); 104var context = GetActionContext(_controllerTestContext); 150var context = GetActionContext(_controllerTestContext); 182var context = GetActionContext(_controllerTestContext); 212var context = GetActionContext(_controllerTestContext); 227var context = GetActionContext(_controllerTestContext); 242var context = GetActionContext(_controllerTestContext); 259var context = GetActionContext(_areaTestContext); 281var context = GetActionContext(_controllerTestContext); 316var context = GetActionContext(_controllerTestContext); 348var context = GetActionContext(_controllerTestContext); 376var context = GetActionContext(_areaTestContext); 546var areaContext = GetActionContext(new Dictionary<string, object>() 561var nonAreaContext = GetActionContext(new Dictionary<string, object>() 610var areaContext1 = GetActionContext(new Dictionary<string, object>() 625var areaContext2 = GetActionContext(new Dictionary<string, object>() 708var context = GetActionContext(routeValues); 776var context = GetActionContext(routeValues); 809var context = GetActionContext(new Dictionary<string, object>()); 836var context = GetActionContext(_controllerTestContext); 873var context = GetActionContext(_pageTestContext); 924var context = GetActionContext(_controllerTestContext); 976var context = GetActionContext(_controllerTestContext); 1035var context = GetActionContext(_controllerTestContext); 1070var context = GetActionContext(_controllerTestContext); 1085var context = GetActionContext(_controllerTestContext); 1100var context = GetActionContext(_controllerTestContext); 1129var context = GetActionContext(_controllerTestContext); 1183var context = GetActionContext(routeValues); 1242var context = GetActionContext(routeValues); 1266var context = GetActionContext(_controllerTestContext); 1300var context = GetActionContextWithActionDescriptor( 1334var context = GetActionContextWithActionDescriptor( 1370var context = GetActionContextWithActionDescriptor( 1399var context = GetActionContextWithActionDescriptor( 1614var actionContext = new ActionContext 1638var actionContext = new ActionContext 1661var actionContext = new ActionContext 1684var actionContext = new ActionContext 1711var actionContext = new ActionContext 1857var context = GetActionContext(routeValues); 1892var context = GetActionContext(routeValues); 1911var context = GetActionContext(new Dictionary<string, object>()); 1929var context = GetActionContext(new Dictionary<string, object>()); 1951var context = GetActionContext(new Dictionary<string, object>()); 1969var context = GetActionContext(new Dictionary<string, object>()); 1991var context = GetActionContext(_controllerTestContext); 2118private static ActionContext GetActionContext(IDictionary<string, object> routeValues) 2131private static ActionContext GetActionContextWithActionDescriptor(
RazorViewTest.cs (9)
863.Setup(p => p.FindPage(It.IsAny<ActionContext>(), "NestedLayout")) 869.Setup(p => p.FindPage(It.IsAny<ActionContext>(), "Layout")) 1219.Setup(p => p.FindPage(It.IsAny<ActionContext>(), "_Layout")) 1267.Setup(p => p.FindPage(It.IsAny<ActionContext>(), "_Layout")) 1273.Setup(p => p.FindPage(It.IsAny<ActionContext>(), "_Layout2")) 1401.Setup(p => p.FindPage(It.IsAny<ActionContext>(), "layout-1")) 1456.Setup(p => p.FindPage(It.IsAny<ActionContext>(), "layout-1")) 1759viewEngine.Setup(v => v.FindPage(It.IsAny<ActionContext>(), LayoutPath)) 1793var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
TagHelpers\UrlResolutionTagHelperTest.cs (6)
111.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>())) 171.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>())) 232.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>())) 288.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>())) 365.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>())) 403.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>()))
Microsoft.AspNetCore.Mvc.RazorPages (15)
ApplicationModels\DefaultPageApplicationModelPartsProvider.cs (2)
17private readonly Func<ActionContext, bool> _supportsAllRequests; 18private readonly Func<ActionContext, bool> _supportsNonGetRequests;
Diagnostics\MvcDiagnostics.cs (4)
27public BeforeHandlerMethodEventData(ActionContext actionContext, IReadOnlyDictionary<string, object?> arguments, HandlerMethodDescriptor handlerMethodDescriptor, object instance) 38public ActionContext ActionContext { get; } 87public AfterHandlerMethodEventData(ActionContext actionContext, IReadOnlyDictionary<string, object?> arguments, HandlerMethodDescriptor handlerMethodDescriptor, object instance, IActionResult? result) 99public ActionContext ActionContext { get; }
Infrastructure\PageActionInvokerCache.cs (1)
41public (PageActionInvokerCacheEntry cacheEntry, IFilterMetadata[] filters) GetCachedResult(ActionContext actionContext)
Infrastructure\PageActionInvokerProvider.cs (1)
65var actionContext = context.ActionContext;
MvcRazorPagesDiagnosticListenerExtensions.cs (4)
15ActionContext actionContext, 33private static void BeforeHandlerMethodImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, HandlerMethodDescriptor handlerMethodDescriptor, IReadOnlyDictionary<string, object?> arguments, object instance) 50ActionContext actionContext, 69private static void AfterHandlerMethodImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, HandlerMethodDescriptor handlerMethodDescriptor, IReadOnlyDictionary<string, object?> arguments, object instance, IActionResult? result)
PageContext.cs (2)
37/// <param name="actionContext">The <see cref="ActionContext"/>.</param> 38public PageContext(ActionContext actionContext)
PageResult.cs (1)
50public override Task ExecuteResultAsync(ActionContext context)
Microsoft.AspNetCore.Mvc.RazorPages.Test (16)
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());
Infrastructure\PageActionInvokerTest.cs (7)
834.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 874result.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 894.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 943result.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once()); 1177.Setup(r => r.ExecuteResultAsync(It.IsAny<ActionContext>())) 1178.Returns<ActionContext>((context) => Task.FromResult(true)) 1214result.Verify(r => r.ExecuteResultAsync(It.IsAny<ActionContext>()), Times.Once());
Infrastructure\PageBinderFactoryTest.cs (1)
822ActionContext actionContext,
Infrastructure\PageViewLocationExpanderTest.cs (1)
203var actionContext = new ActionContext
PageModelTest.cs (3)
1724var actionContext = new ActionContext(httpContext, new RouteData(), new PageActionDescriptor(), modelState); 1787urlHelperFactory.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>())) 1792var actionContext = new ActionContext
PageTest.cs (1)
24var actionContext = new ActionContext(httpContext, new RouteData(), new PageActionDescriptor(), modelState);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (17)
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 (3)
64.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>())) 293var actionContext = new ActionContext(new DefaultHttpContext(), new AspNetCore.Routing.RouteData(), new ActionDescriptor()); 391.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>()))
LinkTagHelperTest.cs (3)
62.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>())) 1124var actionContext = new ActionContext(new DefaultHttpContext(), new AspNetCore.Routing.RouteData(), new ActionDescriptor()); 1214.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>()))
ScriptTagHelperTest.cs (3)
61.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>())) 1105var actionContext = new ActionContext(new DefaultHttpContext(), new AspNetCore.Routing.RouteData(), new ActionDescriptor()); 1168.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>()))
TestableHtmlGenerator.cs (2)
74var actionContext = new ActionContext( 133.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>()))
ValidationMessageTagHelperTest.cs (1)
465var actionContext = new ActionContext(
ValidationSummaryTagHelperTest.cs (1)
649var actionContext = new ActionContext(
Microsoft.AspNetCore.Mvc.ViewFeatures (90)
Diagnostics\MvcDiagnostics.cs (4)
330public ViewFoundEventData(ActionContext actionContext, bool isMainPage, ActionResult result, string viewName, IView view) 342public ActionContext ActionContext { get; } 401public ViewNotFoundEventData(ActionContext actionContext, bool isMainPage, ActionResult result, string viewName, IEnumerable<string> searchedLocations) 413public ActionContext ActionContext { get; }
IHtmlGenerator.cs (1)
511/// <see cref="ActionContext.ModelState"/> contains an error for the <paramref name="expression"/>.
MvcViewFeaturesDiagnosticListenerExtensions.cs (4)
166ActionContext actionContext, 179private static void ViewFoundImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, bool isMainPage, ActionResult viewResult, string viewName, IView view) 197ActionContext actionContext, 210private static void ViewNotFoundImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, bool isMainPage, ActionResult viewResult, string viewName, IEnumerable<string> searchedLocations)
PartialViewResult.cs (1)
60public override Task ExecuteResultAsync(ActionContext context)
PartialViewResultExecutor.cs (6)
58/// <param name="actionContext">The <see cref="ActionContext"/> associated with the current request.</param> 61public virtual ViewEngineResult FindView(ActionContext actionContext, PartialViewResult viewResult) 125/// <param name="actionContext">The <see cref="ActionContext"/> associated with the current request.</param> 129public virtual Task ExecuteAsync(ActionContext actionContext, IView view, PartialViewResult viewResult) 145public virtual async Task ExecuteAsync(ActionContext context, PartialViewResult result) 164private static string? GetActionName(ActionContext context)
Rendering\HtmlHelperInputExtensions.cs (24)
18/// the <see cref="ActionContext.ModelState"/> entry with full name, 42/// the <see cref="ActionContext.ModelState"/> entry with full name, 72/// the <see cref="ActionContext.ModelState"/> entry with full name, 104/// the <see cref="ActionContext.ModelState"/> entry with full name, or 129/// the <see cref="ActionContext.ModelState"/> entry with full name, 152/// the <see cref="ActionContext.ModelState"/> entry with full name, 180/// the <see cref="ActionContext.ModelState"/> entry with full name, or 276/// the <see cref="ActionContext.ModelState"/> entry with full name, 308/// the <see cref="ActionContext.ModelState"/> entry with full name, 347/// the <see cref="ActionContext.ModelState"/> entry with full name, 385/// the <see cref="ActionContext.ModelState"/> entry with full name, or 416/// the <see cref="ActionContext.ModelState"/> entry with full name, 439/// the <see cref="ActionContext.ModelState"/> entry with full name, 467/// the <see cref="ActionContext.ModelState"/> entry with full name, 500/// the <see cref="ActionContext.ModelState"/> entry with full name, 535/// the <see cref="ActionContext.ModelState"/> entry with full name, or 562/// the <see cref="ActionContext.ModelState"/> entry with full name, or 594/// the <see cref="ActionContext.ModelState"/> entry with full name, 628/// the <see cref="ActionContext.ModelState"/> entry with full name, 653/// the <see cref="ActionContext.ModelState"/> entry with full name, 684/// the <see cref="ActionContext.ModelState"/> entry with full name, 712/// the <see cref="ActionContext.ModelState"/> entry with full name, 746/// the <see cref="ActionContext.ModelState"/> entry with full name, or 773/// the <see cref="ActionContext.ModelState"/> entry with full name, or
Rendering\HtmlHelperSelectExtensions.cs (11)
19/// the <see cref="ActionContext.ModelState"/> entry with full name, or 50/// the <see cref="ActionContext.ModelState"/> entry with full name, or 90/// the <see cref="ActionContext.ModelState"/> entry with full name, 124/// the <see cref="ActionContext.ModelState"/> entry with full name, 163/// the <see cref="ActionContext.ModelState"/> entry with full name, 201/// the <see cref="ActionContext.ModelState"/> entry with full name, or 236/// the <see cref="ActionContext.ModelState"/> entry with full name, or 280/// the <see cref="ActionContext.ModelState"/> entry with full name, or 319/// the <see cref="ActionContext.ModelState"/> entry with full name, or 349/// the <see cref="ActionContext.ModelState"/> entry with full name, 383/// the <see cref="ActionContext.ModelState"/> entry with full name, or
Rendering\HtmlHelperValueExtensions.cs (4)
16/// the <see cref="ActionContext.ModelState"/> entry with full name, 37/// the <see cref="ActionContext.ModelState"/> entry with full name, or 62/// the <see cref="ActionContext.ModelState"/> entry with full name, 82/// the <see cref="ActionContext.ModelState"/> entry with full name,
Rendering\IHtmlHelper.cs (10)
172/// the <see cref="ActionContext.ModelState"/> entry with full name, 176/// the <see cref="ActionContext.ModelState"/> entry with full name, or 256/// the <see cref="ActionContext.ModelState"/> entry with full name, 402/// the <see cref="ActionContext.ModelState"/> entry with full name, 447/// the <see cref="ActionContext.ModelState"/> entry with full name, 521/// the <see cref="ActionContext.ModelState"/> entry with full name, 525/// the <see cref="ActionContext.ModelState"/> entry with full name, or 613/// the <see cref="ActionContext.ModelState"/> entry with full name, 638/// the <see cref="ActionContext.ModelState"/> entry with full name, 718/// the <see cref="ActionContext.ModelState"/> entry with full name,
Rendering\IHtmlHelperOfT.cs (10)
26/// the <see cref="ActionContext.ModelState"/> entry with full name. 29/// the <see cref="ActionContext.ModelState"/> entry with full name, or 118/// the <see cref="ActionContext.ModelState"/> entry with full name, or 191/// the <see cref="ActionContext.ModelState"/> entry with full name or 240/// the <see cref="ActionContext.ModelState"/> entry with full name, or 305/// the <see cref="ActionContext.ModelState"/> entry with full name. 308/// the <see cref="ActionContext.ModelState"/> entry with full name, or 340/// the <see cref="ActionContext.ModelState"/> entry with full name, or 367/// the <see cref="ActionContext.ModelState"/> entry with full name, 425/// the <see cref="ActionContext.ModelState"/> entry with full name, or
Rendering\ViewContext.cs (2)
41/// <param name="actionContext">The <see cref="ActionContext"/>.</param> 48ActionContext actionContext,
ViewComponentResult.cs (1)
59public override Task ExecuteResultAsync(ActionContext context)
ViewComponentResultExecutor.cs (1)
67public virtual async Task ExecuteAsync(ActionContext context, ViewComponentResult result)
ViewEngines\CompositeViewEngine.cs (1)
28public ViewEngineResult FindView(ActionContext context, string viewName, bool isMainPage)
ViewEngines\IViewEngine.cs (2)
17/// <param name="context">The <see cref="ActionContext"/>.</param> 23ViewEngineResult FindView(ActionContext context, string viewName, bool isMainPage);
ViewExecutor.cs (2)
109/// <param name="actionContext">The <see cref="ActionContext"/> associated with the current request.</param> 122ActionContext actionContext,
ViewResult.cs (1)
60public override async Task ExecuteResultAsync(ActionContext context)
ViewResultExecutor.cs (5)
58/// <param name="actionContext">The <see cref="ActionContext"/> associated with the current request.</param> 61public virtual ViewEngineResult FindView(ActionContext actionContext, ViewResult viewResult) 116private void OutputDiagnostics(ActionContext actionContext, ViewResult viewResult, string viewName, ViewEngineResult result) 139public async Task ExecuteAsync(ActionContext context, ViewResult result) 164private static string? GetActionName(ActionContext context)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (191)
ControllerTest.cs (1)
409var actionContext = new ActionContext(
DefaultDisplayTemplatesTest.cs (7)
129.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 264.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 286.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 308.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 331.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 360.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 379.Setup(v => v.FindView(It.IsAny<ActionContext>(), "DisplayTemplates/String", /*isMainPage*/ false))
DefaultEditorTemplatesTest.cs (19)
359.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 577.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 610.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 642.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 685.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 727.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 770.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 811.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 849.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 915.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 986.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 1056.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 1125.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 1191.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 1228.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 1252.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 1277.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 1308.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 1327.Setup(v => v.FindView(It.IsAny<ActionContext>(), "EditorTemplates/String", /*isMainPage*/ false))
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 (5)
303var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 327private ResultExecutingContext GetResultExecutingContext(ActionContext actionContext, IActionResult actionResult = null) 368private ActionContext GetActionContext(HttpContext httpContext = null) 383public Task ExecuteResultAsync(ActionContext context) 391public Task ExecuteResultAsync(ActionContext context)
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 (3)
165var actionContext = GetActionContext(serviceProvider, routeData); 198private static ActionContext GetActionContext(IServiceProvider serviceProvider, RouteData routeData) 235public ActionContext ActionContext { get; set; }
PartialViewResultExecutorTest.cs (13)
25var context = GetActionContext(); 60var context = GetActionContext(viewName); 82var context = GetActionContext(viewName); 105var context = GetActionContext(); 140var context = GetActionContext(); 175var context = GetActionContext(); 213var context = GetActionContext(); 246var context = GetActionContext(); 284var context = GetActionContext(); 313var context = GetActionContext(); 333private ActionContext GetActionContext(string actionName = null) 354.Setup(e => e.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 355.Returns<ActionContext, string, bool>(
PartialViewResultTest.cs (10)
45var actionContext = new ActionContext(new DefaultHttpContext() { RequestServices = Mock.Of<IServiceProvider>(), }, new RouteData(), new ActionDescriptor()); 65var actionContext = GetActionContext(); 79.Setup(v => v.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ false)) 103var actionContext = GetActionContext(); 117.Setup(v => v.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ false)) 141var actionContext = GetActionContext(); 157.Setup(v => v.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ false)) 181var actionContext = GetActionContext(); 206.Setup(v => v.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ false)) 226private ActionContext GetActionContext()
RemoteAttributeBaseTest.cs (1)
482var actionContext = new ActionContext(
RemoteAttributeTest.cs (4)
368var actionContext = GetActionContext(serviceProvider, routeData: null); 408var actionContext = GetActionContext(serviceProvider, routeData); 464private static ActionContext GetActionContext(IServiceProvider serviceProvider, RouteData routeData) 510public ActionContext ActionContext { get; }
Rendering\DefaultTemplatesUtilities.cs (3)
229var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 247.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>())) 321.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false))
Rendering\HtmlHelperDisplayExtensionsTest.cs (17)
28.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 59.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 80.Setup(v => v.FindView(It.IsAny<ActionContext>(), "DisplayTemplates/SomeTemplate", /*isMainPage*/ false)) 142.Setup(v => v.FindView(It.IsAny<ActionContext>(), "DisplayTemplates/Status", /*isMainPage*/ false)) 168.Setup(v => v.FindView(It.IsAny<ActionContext>(), "DisplayTemplates/Status", /*isMainPage*/ false)) 194.Setup(v => v.FindView(It.IsAny<ActionContext>(), "DisplayTemplates/SomeTemplate", /*isMainPage*/ false)) 222.Setup(v => v.FindView(It.IsAny<ActionContext>(), "DisplayTemplates/SomeTemplate", /*isMainPage*/ false)) 250.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 271.Setup(v => v.FindView(It.IsAny<ActionContext>(), "DisplayTemplates/SomeTemplate", /*isMainPage*/ false)) 297.Setup(v => v.FindView(It.IsAny<ActionContext>(), "DisplayTemplates/SomeTemplate", /*isMainPage*/ false)) 328.Setup(v => v.FindView(It.IsAny<ActionContext>(), "DisplayTemplates/Status", /*isMainPage*/ false)) 369.Setup(v => v.FindView(It.IsAny<ActionContext>(), "DisplayTemplates/Status", /*isMainPage*/ false)) 394.Setup(v => v.FindView(It.IsAny<ActionContext>(), "DisplayTemplates/SomeTemplate", /*isMainPage*/ false)) 422.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 443.Setup(v => v.FindView(It.IsAny<ActionContext>(), "DisplayTemplates/SomeTemplate", /*isMainPage*/ false)) 469.Setup(v => v.FindView(It.IsAny<ActionContext>(), "DisplayTemplates/SomeTemplate", /*isMainPage*/ false)) 496.Setup(v => v.FindView(It.IsAny<ActionContext>(), "DisplayTemplates/SomeTemplate", /*isMainPage*/ false))
Rendering\HtmlHelperEditorExtensionsTest.cs (2)
26.Setup(v => v.FindView(It.IsAny<ActionContext>(), "EditorTemplates/Status", /*isMainPage*/ false)) 52.Setup(v => v.FindView(It.IsAny<ActionContext>(), "EditorTemplates/Status", /*isMainPage*/ false))
Rendering\HtmlHelperPartialExtensionsTest.cs (6)
412.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 441.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 472.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 501.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 530.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false)) 561.Setup(v => v.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ false))
SkipStatusCodePagesAttributeTest.cs (1)
50private static ActionContext CreateActionContext()
ViewComponentResultTest.cs (20)
54var actionContext = new ActionContext(new DefaultHttpContext() { RequestServices = Mock.Of<IServiceProvider>(), }, new RouteData(), new ActionDescriptor()); 83var actionContext = CreateActionContext(descriptor); 106var actionContext = CreateActionContext(); 128var actionContext = CreateActionContext(); 151var actionContext = CreateActionContext(); 181var actionContext = CreateActionContext(descriptor); 212var actionContext = CreateActionContext(descriptor); 243var actionContext = CreateActionContext(descriptor); 276var actionContext = CreateActionContext(adapter, descriptor); 315var actionContext = CreateActionContext(descriptor); 346var actionContext = CreateActionContext(descriptor); 377var actionContext = CreateActionContext(descriptor); 419var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 461var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 492var actionContext = CreateActionContext(descriptor); 552var actionContext = CreateActionContext(descriptor); 592var actionContext = CreateActionContext(descriptor); 631var actionContext = CreateActionContext(descriptor); 697private ActionContext CreateActionContext(object diagnosticListener, params ViewComponentDescriptor[] descriptors) 702private ActionContext CreateActionContext(params ViewComponentDescriptor[] descriptors)
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 (12)
40.Setup(v => v.FindView(It.IsAny<ActionContext>(), "Components/Invoke/some-view", /*isMainPage*/ false)) 75.Setup(v => v.FindView(It.IsAny<ActionContext>(), "Components/Invoke/Default", /*isMainPage*/ false)) 109.Setup(v => v.FindView(It.IsAny<ActionContext>(), "Components/Invoke/Default", /*isMainPage*/ false)) 158.Setup(v => v.FindView(It.IsAny<ActionContext>(), "Components/Invoke/some-view", /*isMainPage*/ false)) 196.Setup(v => v.FindView(It.IsAny<ActionContext>(), "Components/Invoke/some-view", /*isMainPage*/ false)) 236.Setup(v => v.FindView(It.IsAny<ActionContext>(), "Components/Invoke/some-view", /*isMainPage*/ false)) 274.Setup(v => v.FindView(It.IsAny<ActionContext>(), "Components/Invoke/some-view", /*isMainPage*/ false)) 310.Setup(v => v.FindView(It.IsAny<ActionContext>(), "Components/Invoke/some-view", /*isMainPage*/ false)) 345.Setup(v => v.FindView(It.IsAny<ActionContext>(), "Components/Invoke/some-view", /*isMainPage*/ false)) 394.Setup(v => v.FindView(It.IsAny<ActionContext>(), "Components/Invoke/some-view", /*isMainPage*/ false)) 460.Setup(v => v.FindView(It.IsAny<ActionContext>(), expectedViewName, /*isMainPage*/ false)) 521var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
ViewEngines\CompositeViewEngineTest.cs (19)
39var actionContext = GetActionContext(); 56.Setup(e => e.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ true)) 78.Setup(e => e.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ true)) 103.Setup(e => e.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ true)) 106.Setup(e => e.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ true)) 109.Setup(e => e.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ true)) 136.Setup(e => e.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ true)) 139.Setup(e => e.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ true)) 142.Setup(e => e.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ true)) 323.Setup(e => e.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ false)) 345.Setup(e => e.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ false)) 370.Setup(e => e.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ false)) 373.Setup(e => e.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ false)) 376.Setup(e => e.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ false)) 403.Setup(e => e.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ false)) 406.Setup(e => e.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ false)) 409.Setup(e => e.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ false)) 426private static ActionContext GetActionContext() 440public ViewEngineResult FindView(ActionContext context, string viewName, bool isMainPage)
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 (13)
24var context = GetActionContext(); 59var context = GetActionContext(viewName); 81var context = GetActionContext(viewName); 104var context = GetActionContext(); 138var context = GetActionContext(); 172var context = GetActionContext(); 209var context = GetActionContext(); 242var context = GetActionContext(); 279var context = GetActionContext(); 303var context = GetActionContext(); 323private ActionContext GetActionContext(string actionName = null) 344.Setup(e => e.FindView(It.IsAny<ActionContext>(), It.IsAny<string>(), /*isMainPage*/ true)) 345.Returns<ActionContext, string, bool>(
ViewResultTest.cs (10)
55var actionContext = new ActionContext(new DefaultHttpContext() { RequestServices = Mock.Of<IServiceProvider>(), }, new RouteData(), new ActionDescriptor()); 75var actionContext = GetActionContext(); 89.Setup(v => v.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ true)) 113var actionContext = GetActionContext(); 129.Setup(v => v.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ true)) 153var actionContext = GetActionContext(); 169.Setup(v => v.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ true)) 193var actionContext = GetActionContext(); 218.Setup(v => v.FindView(It.IsAny<ActionContext>(), viewName, /*isMainPage*/ true)) 238private ActionContext GetActionContext()
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
HtmlGeneratorUtilities.cs (1)
21.Setup(f => f.GetUrlHelper(It.IsAny<ActionContext>()))
Mvc.RoutingWebSite (2)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (2)
13private readonly ActionContext _actionContext; 54private IUrlHelper GetUrlHelper(ActionContext context)
RazorPagesWebSite (1)
CustomActionResult.cs (1)
10public Task ExecuteResultAsync(ActionContext context)
VersioningWebSite (2)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (2)
13private readonly ActionContext _actionContext; 54private IUrlHelper GetUrlHelper(ActionContext context)