296 instantiations of RouteData
Microsoft.AspNetCore.Http.Results.Tests (2)
ForbidResultTests.cs (2)
50var routeData = new RouteData(); 102var routeData = new RouteData();
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
Filters\FilterContextTest.cs (1)
122: base(new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()), filters)
Microsoft.AspNetCore.Mvc.Core (4)
Routing\ActionConstraintMatcherPolicy.cs (1)
219var routeData = new RouteData(candidate.Values!);
Routing\ActionEndpointFactory.cs (1)
530var routeData = new RouteData();
Routing\ControllerRequestDelegateFactory.cs (2)
74routeData = new RouteData(context.Request.RouteValues); 78routeData = new RouteData();
Microsoft.AspNetCore.Mvc.Core.Test (127)
AcceptedAtActionResultTests.cs (3)
201var context = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 218var context = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 239var routeData = new RouteData();
AcceptedAtRouteResultTests.cs (1)
147var routeData = new RouteData();
AcceptedResultTests.cs (1)
105var routeData = new RouteData();
ActionConstraints\HttpMethodActionConstraintTest.cs (1)
81routeContext.RouteData = new RouteData();
Authorization\AuthorizeFilterTest.cs (2)
21private readonly ActionContext ActionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 628routeData: new RouteData(),
ChallengeResultTest.cs (2)
29var routeData = new RouteData(); 54var routeData = new RouteData();
ConsumesAttributeTests.cs (4)
309var actionContext = new ActionContext(httpContext, new RouteData(), actionWithConstraint); 339var actionContext = new ActionContext(httpContext, new RouteData(), actionWithConstraint); 368var actionContext = new ActionContext(httpContext, new RouteData(), actionWithConstraint); 408routeContext.RouteData = new RouteData();
ContentResultTest.cs (1)
248var routeData = new RouteData();
ControllerBaseTest.cs (2)
2339new RouteData(), 2459new RouteData(),
Controllers\ControllerBinderDelegateProviderTest.cs (1)
1261RouteData = new RouteData(),
Controllers\DefaultControllerActivatorTest.cs (2)
33new RouteData(), 133new RouteData(),
Controllers\ServiceBasedControllerActivatorTest.cs (2)
29new RouteData(), 59new RouteData(),
CreatedAtActionResultTests.cs (1)
68var routeData = new RouteData();
CreatedAtRouteResultTests.cs (1)
81var routeData = new RouteData();
CreatedResultTests.cs (1)
114var routeData = new RouteData();
EmptyResultTests.cs (1)
20var routeData = new RouteData();
FileContentResultTest.cs (1)
37var context = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
FileResultHelperTest.cs (1)
480return new ActionContext(context, new RouteData(), new ActionDescriptor());
FileStreamResultTest.cs (1)
29var actionContext = new ActionContext(httpContext, new(), new());
Filters\DisableRequestSizeLimitFilterTest.cs (1)
122return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
Filters\FilterFactoryTest.cs (1)
333return new ActionContext(new DefaultHttpContext(), new RouteData(), actionDescriptor);
Filters\FilterProviderTest.cs (1)
150return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
Filters\MiddlewareFilterBuilderTest.cs (3)
129new RouteData(), 192new RouteData(), 260new RouteData(),
Filters\MiddlewareFilterTest.cs (2)
220new ActionContext(httpContext, new RouteData(), new ActionDescriptor(), new ModelStateDictionary()), 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)
29var routeData = new RouteData(); 60var routeData = new RouteData(); 94var routeData = new RouteData(); 125var routeData = new RouteData();
Formatters\FormatFilterTest.cs (4)
73var data = new RouteData(); 330var actionContext = new ActionContext(httpContext.Object, new RouteData(), new ActionDescriptor()); 367var actionContext = new ActionContext(httpContext.Object, new RouteData(), new ActionDescriptor()); 431var data = new RouteData();
Formatters\JsonOutputFormatterTestBase.cs (1)
171return new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
HttpActionResultTests.cs (1)
36var context = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
HttpOkObjectResultTest.cs (1)
57var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
HttpOkResultTest.cs (1)
32var context = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
HttpStatusCodeResultTests.cs (1)
23var routeData = new RouteData();
Infrastructure\ActionSelectorTest.cs (1)
1099var routeData = new RouteData();
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)
31RouteData = new RouteData(),
Infrastructure\ControllerActionInvokerTest.cs (3)
45var routeData = new RouteData(); 1409var actionContext = new ActionContext(context.Object, new RouteData(), actionDescriptor); 1695routeData = new RouteData();
Infrastructure\JsonResultExecutorTestBase.cs (1)
493return new ActionContext(GetHttpContext(), new RouteData(), new ActionDescriptor());
Infrastructure\ModelStateInvalidFilterTest.cs (1)
75new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()),
LocalRedirectResultTest.cs (1)
130var routeData = new RouteData();
ModelBinding\CompositeValueProviderTest.cs (1)
52var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor(), new ModelStateDictionary());
ModelBinding\FormFileValueProviderFactoryTest.cs (2)
108var actionContext = new ActionContext(context.Object, new RouteData(), new ActionDescriptor()); 118var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
ModelBinding\FormValueProviderFactoryTest.cs (2)
96var actionContext = new ActionContext(context.Object, new RouteData(), new ActionDescriptor()); 111var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
ModelBinding\JQueryFormValueProviderFactoryTest.cs (2)
181var actionContext = new ActionContext(context.Object, new RouteData(), new ActionDescriptor()); 196var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
ModelBinding\JQueryQueryStringValueProviderFactoryTest.cs (1)
119var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
ModelBinding\QueryStringValueProviderFactoryTest.cs (2)
18var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 37var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
ModelBinding\UnsupportedContentTypeFilterTest.cs (4)
21RouteData = new RouteData(), 54RouteData = new RouteData(), 80RouteData = new RouteData(), 104RouteData = new RouteData(),
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()); 59new RouteData(), 87RouteData = new RouteData(), 144RouteData = new RouteData(), 197var routeData = new RouteData 247var routeData = new RouteData
RedirectToRouteResultTest.cs (5)
35new RouteData(), 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 (19)
19var routeData = new RouteData 211var routeData = new RouteData 254var routeData = new RouteData 302var routeData = new RouteData 350var routeData = new RouteData 393var routeData = new RouteData 439var routeData = new RouteData(); 494var routeData = new RouteData(); 504RouteData = new RouteData 538var routeData = new RouteData(); 541RouteData = new RouteData(), 562var routeData = new RouteData 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()); 725RouteData = new RouteData 773RouteData = new RouteData 821RouteData = new RouteData 875RouteData = new RouteData
Routing\UrlHelperTestBase.cs (3)
1083RouteData = new RouteData(new RouteValueDictionary()), 1131var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 1137routeData = routeData ?? new RouteData();
SignInResultTest.cs (3)
31var routeData = new RouteData(); 58var routeData = new RouteData(); 86var routeData = new RouteData();
SignOutResultTest.cs (3)
29var routeData = new RouteData(); 55var routeData = new RouteData(); 86var routeData = new RouteData();
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 (5)
CorsAuthorizationFilterTest.cs (1)
154routeData: new RouteData(),
CorsHttpMethodActionConstraintTest.cs (1)
100routeContext.RouteData = new RouteData();
DisableCorsAuthorizationFilterTest.cs (3)
24new ActionContext(httpContext, new RouteData(), new ActionDescriptor()), 43new ActionContext(httpContext, new RouteData(), new ActionDescriptor()), 65new ActionContext(httpContext, new RouteData(), new ActionDescriptor()),
Microsoft.AspNetCore.Mvc.IntegrationTests (5)
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());
ModelBindingTestHelper.cs (1)
39RouteData = new RouteData(),
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 (14)
DefaultTagHelperFactoryTest.cs (1)
155var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
Infrastructure\DefaultTagHelperActivatorTest.cs (1)
41var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
RazorPageActivatorTest.cs (1)
259var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
RazorPageCreateModelExpressionTest.cs (1)
322var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
RazorPageCreateTagHelperTest.cs (1)
93var actionContext = new ActionContext(httpContext.Object, new RouteData(), new ActionDescriptor());
RazorPageTest.cs (1)
1421new RouteData(),
RazorViewEngineTest.cs (7)
1617RouteData = new RouteData() 1641RouteData = new RouteData() 1664RouteData = new RouteData() 1687RouteData = new RouteData() 1714RouteData = new RouteData() 2121var routeData = new RouteData(); 2136var routeData = new RouteData();
RazorViewTest.cs (1)
1793var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
Microsoft.AspNetCore.Mvc.RazorPages (2)
Infrastructure\PageRequestDelegateFactory.cs (2)
86routeData = new RouteData(context.Request.RouteValues); 90routeData = new RouteData();
Microsoft.AspNetCore.Mvc.RazorPages.Test (46)
Filters\PageHandlerResultFilterTest.cs (4)
20new RouteData(), 58new RouteData(), 99new RouteData(), 141new RouteData(),
Filters\PageSaveTempDataPropertyFilterTest.cs (3)
63RouteData = new RouteData(), 104RouteData = new RouteData(), 144RouteData = new RouteData(),
Filters\PageViewDataAttributeFilterTest.cs (2)
24var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 43var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
Infrastructure\DefaultPageHandlerMethodSelectorTest.cs (15)
36RouteData = new RouteData(), 84RouteData = new RouteData(), 135RouteData = new RouteData(), 179RouteData = new RouteData(), 215RouteData = new RouteData(), 258RouteData = new RouteData(), 302RouteData = new RouteData 352RouteData = new RouteData 403RouteData = new RouteData 453RouteData = new RouteData(), 498RouteData = new RouteData 549RouteData = new RouteData(), 593RouteData = new RouteData 649RouteData = new RouteData(), 703RouteData = new RouteData
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (1)
127var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new PageActionDescriptor());
Infrastructure\PageActionInvokerProviderTest.cs (9)
57RouteData = new RouteData(), 119RouteData = new RouteData(), 185RouteData = new RouteData(), 217RouteData = new RouteData(), 233RouteData = new RouteData(), 263RouteData = new RouteData(), 297RouteData = new RouteData(), 334RouteData = new RouteData(), 351RouteData = new RouteData(),
Infrastructure\PageActionInvokerTest.cs (3)
37var routeData = new RouteData(); 65var routeData = new RouteData(); 1508RouteData = routeData ?? new RouteData(),
Infrastructure\PageHandlerPageFilterTest.cs (4)
20new RouteData(), 59new RouteData(), 101new RouteData(), 144new RouteData(),
PageModelTest.cs (4)
1724var actionContext = new ActionContext(httpContext, new RouteData(), new PageActionDescriptor(), modelState); 1848new RouteData(), 1882new RouteData(), 1917new RouteData(),
PageTest.cs (1)
24var actionContext = new ActionContext(httpContext, new RouteData(), new PageActionDescriptor(), modelState);
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (14)
RouteDataTest.cs (14)
14var routeData = new RouteData(); 26var original = new RouteData(); 32var routeData = new RouteData(original); 47var routeData = new RouteData(); 51var copy = new RouteData(routeData); 64var routeData = new RouteData(); 68var copy = new RouteData(routeData); 83var original = new RouteData(); 86var routeData = new RouteData(original); 103var routeData = new RouteData(); 111var copy = new RouteData(routeData); 127var original = new RouteData(); 132var routeData = new RouteData(original); 144var copy = new RouteData(routeData);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (12)
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());
FormActionTagHelperTest.cs (1)
479RouteData = new RouteData(),
FormTagHelperTest.cs (1)
1158new RouteData(),
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)
76new RouteData(),
ValidationMessageTagHelperTest.cs (1)
467new RouteData(),
ValidationSummaryTagHelperTest.cs (1)
651new RouteData(),
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (58)
ControllerTest.cs (1)
411new RouteData(),
ControllerUnitTestabilityTests.cs (1)
596var routeData = new RouteData();
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)
42RouteData = new RouteData(), 88RouteData = new RouteData(), 131RouteData = new RouteData(), 170RouteData = new RouteData(),
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 (5)
38var routeData = new RouteData(ambientValues) 76var routeData = new RouteData(ambientValues) 108var routeData = new RouteData(ambientValues) 139var routeData = new RouteData(ambientValues) 209routeData = new RouteData
PartialViewResultExecutorTest.cs (1)
335var routeData = new RouteData();
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());
RemoteAttributeTest.cs (2)
391var routeData = new RouteData 475routeData = new RouteData
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)
98new RouteData(), 139new RouteData(), 193new RouteData(), 230new RouteData(), 265new RouteData(), 313new RouteData(), 354new RouteData(),
ViewResultExecutorTest.cs (1)
325var routeData = new RouteData();
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());
Microsoft.AspNetCore.Routing.Abstractions (2)
RouteContext.cs (1)
23RouteData = new RouteData();
RoutingHttpContextExtensions.cs (1)
26return routingFeature?.RouteData ?? new RouteData(httpContext.Request.RouteValues);
160 references to RouteData
Microsoft.AspNetCore.App.Analyzers.Test (1)
Verifiers\CSharpAnalyzerVerifier.cs (1)
85TrimAssemblyExtension(typeof(Microsoft.AspNetCore.Routing.RouteData).Assembly.Location),
Microsoft.AspNetCore.Http.Results.Tests (2)
ForbidResultTests.cs (2)
50var routeData = new RouteData(); 102var routeData = new RouteData();
Microsoft.AspNetCore.Mvc.Abstractions (6)
ActionContext.cs (6)
44/// <param name="routeData">The <see cref="AspNetCore.Routing.RouteData"/> for the current request.</param> 48RouteData routeData, 58/// <param name="routeData">The <see cref="AspNetCore.Routing.RouteData"/> for the current request.</param> 63RouteData routeData, 100/// Gets or sets the <see cref="AspNetCore.Routing.RouteData"/> for the current request. 105public RouteData RouteData { get; set; } = default!;
Microsoft.AspNetCore.Mvc.Core (24)
ApplicationModels\ActionModel.cs (1)
126/// <see cref="RouteData.Values"/> for the corresponding action to be selected.
ApplicationModels\ControllerModel.cs (1)
124/// <see cref="RouteData.Values"/> for the corresponding action to be selected.
ControllerBase.cs (2)
50/// Gets the <see cref="AspNetCore.Routing.RouteData"/> for the executing action. 52public RouteData RouteData => ControllerContext.RouteData;
ControllerContext.cs (2)
50/// <param name="routeData">The <see cref="RouteData"/> for the current request.</param> 54RouteData routeData,
Diagnostics\MvcDiagnostics.cs (4)
27public BeforeActionEventData(ActionDescriptor actionDescriptor, HttpContext httpContext, RouteData routeData) 47public RouteData RouteData { get; } 78public AfterActionEventData(ActionDescriptor actionDescriptor, HttpContext httpContext, RouteData routeData) 98public RouteData RouteData { get; }
MvcCoreDiagnosticListenerExtensions.cs (4)
24RouteData routeData) 38private static void BeforeActionImpl(DiagnosticListener diagnosticListener, ActionDescriptor actionDescriptor, HttpContext httpContext, RouteData routeData) 52RouteData routeData) 66private static void AfterActionImpl(DiagnosticListener diagnosticListener, ActionDescriptor actionDescriptor, HttpContext httpContext, RouteData routeData)
Routing\ActionConstraintMatcherPolicy.cs (1)
219var routeData = new RouteData(candidate.Values!);
Routing\ActionEndpointFactory.cs (1)
530var routeData = new RouteData();
Routing\ControllerRequestDelegateFactory.cs (1)
70RouteData routeData;
Routing\IRouteValueProvider.cs (5)
13/// to the <see cref="RouteData.Values"/> when the action is selected. 29/// <see cref="RouteData.Values"/> must contain the values 48/// For <see cref="RouteData.Values"/> like: 56/// <see cref="RouteData.Values"/> does not contain the value 'Blog' for 'area'. 58/// For <see cref="RouteData.Values"/> like:
Routing\MvcAttributeRouteHandler.cs (1)
71var routeData = c.GetRouteData();
Routing\MvcRouteHandler.cs (1)
59var routeData = c.GetRouteData();
Microsoft.AspNetCore.Mvc.Core.Test (47)
AcceptedAtActionResultTests.cs (1)
239var routeData = new RouteData();
AcceptedAtRouteResultTests.cs (1)
147var routeData = new RouteData();
AcceptedResultTests.cs (1)
105var routeData = new RouteData();
ChallengeResultTest.cs (2)
29var routeData = new RouteData(); 54var routeData = new RouteData();
ContentResultTest.cs (1)
248var routeData = new RouteData();
ControllerBaseTest.cs (3)
3053var routeData = Mock.Of<RouteData>(); 3057var innerRouteData = controller.RouteData;
CreatedAtActionResultTests.cs (1)
68var routeData = new RouteData();
CreatedAtRouteResultTests.cs (1)
81var routeData = new RouteData();
CreatedResultTests.cs (1)
114var routeData = new RouteData();
EmptyResultTests.cs (1)
20var routeData = new RouteData();
ForbidResultTest.cs (4)
29var routeData = new RouteData(); 60var routeData = new RouteData(); 94var routeData = new RouteData(); 125var routeData = new RouteData();
Formatters\FormatFilterTest.cs (2)
73var data = new RouteData(); 431var data = new RouteData();
HttpStatusCodeResultTests.cs (1)
23var routeData = new RouteData();
Infrastructure\ActionSelectorTest.cs (1)
1099var routeData = new RouteData();
Infrastructure\ControllerActionInvokerTest.cs (2)
45var routeData = new RouteData(); 1677RouteData routeData = null,
LocalRedirectResultTest.cs (1)
130var routeData = new RouteData();
RedirectToPageResultTest.cs (2)
197var routeData = new RouteData 247var routeData = new RouteData
Routing\MvcRouteHandlerTests.cs (1)
122public RouteData RouteData { get; set; }
Routing\UrlHelperExtensionsTest.cs (10)
19var routeData = new RouteData 211var routeData = new RouteData 254var routeData = new RouteData 302var routeData = new RouteData 350var routeData = new RouteData 393var routeData = new RouteData 439var routeData = new RouteData(); 494var routeData = new RouteData(); 538var routeData = new RouteData(); 562var routeData = new RouteData
Routing\UrlHelperTestBase.cs (4)
963var routeData = urlHelper.ActionContext.RouteData; 1001var routeData = urlHelper.ActionContext.RouteData; 1042var routeData = urlHelper.ActionContext.RouteData; 1135protected virtual ActionContext CreateActionContext(HttpContext httpContext, RouteData routeData = null)
SignInResultTest.cs (3)
31var routeData = new RouteData(); 58var routeData = new RouteData(); 86var routeData = new RouteData();
SignOutResultTest.cs (3)
29var routeData = new RouteData(); 55var routeData = new RouteData(); 86var routeData = new RouteData();
Microsoft.AspNetCore.Mvc.Razor.Test (2)
RazorViewEngineTest.cs (2)
2121var routeData = new RouteData(); 2136var routeData = new RouteData();
Microsoft.AspNetCore.Mvc.RazorPages (8)
ApplicationModels\PageRouteModel.cs (1)
94/// Gets a collection of route values that must be present in the <see cref="RouteData.Values"/>
Infrastructure\PageRequestDelegateFactory.cs (1)
82RouteData? routeData = null;
PageBase.cs (2)
55/// Gets the <see cref="AspNetCore.Routing.RouteData"/> for the executing action. 57public RouteData RouteData => PageContext.RouteData;
PageContext.cs (2)
47/// <param name="routeData">The <see cref="RouteData"/> for the current request.</param> 51RouteData routeData,
PageModel.cs (2)
74/// Gets the <see cref="AspNetCore.Routing.RouteData"/> for the executing action. 76public RouteData RouteData => PageContext.RouteData;
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Infrastructure\PageActionInvokerTest.cs (3)
37var routeData = new RouteData(); 65var routeData = new RouteData(); 1489RouteData routeData = null,
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (14)
RouteDataTest.cs (14)
14var routeData = new RouteData(); 26var original = new RouteData(); 32var routeData = new RouteData(original); 47var routeData = new RouteData(); 51var copy = new RouteData(routeData); 64var routeData = new RouteData(); 68var copy = new RouteData(routeData); 83var original = new RouteData(); 86var routeData = new RouteData(original); 103var routeData = new RouteData(); 111var copy = new RouteData(routeData); 127var original = new RouteData(); 132var routeData = new RouteData(original); 144var copy = new RouteData(routeData);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponent.cs (1)
54public RouteData RouteData => ViewContext?.RouteData!;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
ControllerUnitTestabilityTests.cs (1)
596var routeData = new RouteData();
PageRemoteAttributeTest.cs (6)
38var routeData = new RouteData(ambientValues) 76var routeData = new RouteData(ambientValues) 108var routeData = new RouteData(ambientValues) 139var routeData = new RouteData(ambientValues) 158private static ClientModelValidationContext GetValidationContext(IUrlHelper urlHelper, RouteData routeData = null) 198private static ActionContext GetActionContext(IServiceProvider serviceProvider, RouteData routeData)
PartialViewResultExecutorTest.cs (1)
335var routeData = new RouteData();
RemoteAttributeBaseTest.cs (1)
484routeData: new Mock<RouteData>().Object,
RemoteAttributeTest.cs (2)
391var routeData = new RouteData 464private static ActionContext GetActionContext(IServiceProvider serviceProvider, RouteData routeData)
ViewResultExecutorTest.cs (1)
325var routeData = new RouteData();
Microsoft.AspNetCore.Routing (10)
DataTokensMetadata.cs (1)
13/// type provides data tokens value for <see cref="RouteData.DataTokens"/> associated
IDataTokenMetadata.cs (1)
10/// type provides data tokens value for <see cref="RouteData.DataTokens"/> associated
RequestDelegateRouteBuilderExtensions.cs (5)
91Func<HttpRequest, HttpResponse, RouteData, Task> handler) 133Func<HttpRequest, HttpResponse, RouteData, Task> handler) 175Func<HttpRequest, HttpResponse, RouteData, Task> handler) 217Func<HttpRequest, HttpResponse, RouteData, Task> handler) 235Func<HttpRequest, HttpResponse, RouteData, Task> handler)
RouteHandler.cs (1)
27public RequestDelegate GetRequestHandler(HttpContext httpContext, RouteData routeData)
RoutingFeature.cs (1)
12public RouteData? RouteData { get; set; }
Template\TemplateValuesResult.cs (1)
20/// This combines implicit (ambient) values from the <see cref="RouteData"/> of the current request
Microsoft.AspNetCore.Routing.Abstractions (25)
IRouteHandler.cs (2)
18/// <param name="routeData">The <see cref="RouteData"/> associated with the current routing match.</param> 22RequestDelegate GetRequestHandler(HttpContext httpContext, RouteData routeData);
IRoutingFeature.cs (2)
14/// Gets or sets the <see cref="Routing.RouteData"/> associated with the current request. 16RouteData? RouteData { get; set; }
RouteContext.cs (3)
13private RouteData _routeData; 38/// Gets or sets the <see cref="Routing.RouteData"/> associated with the current context. 40public RouteData RouteData
RouteData.cs (14)
22/// Creates a new instance of <see cref="RouteData"/> instance. 30/// Creates a new instance of <see cref="RouteData"/> instance with values copied from <paramref name="other"/>. 32/// <param name="other">The other <see cref="RouteData"/> instance to copy.</param> 33public RouteData(RouteData other) 55/// Creates a new instance of <see cref="RouteData"/> instance with the specified values. 115/// Creates a snapshot of the current state of the <see cref="RouteData"/> before appending 120/// Call <see cref="RouteDataSnapshot.Restore"/> to restore the state of this <see cref="RouteData"/> 188private sealed class RouteDataDebugView(RouteData routeData) 190private readonly RouteData _routeData = routeData; 197/// A snapshot of the state of a <see cref="RouteData"/> instance. 201private readonly RouteData _routeData; 209/// <param name="routeData">The <see cref="RouteData"/>.</param> 214RouteData routeData, 228/// Restores the <see cref="RouteData"/> to the captured state.
RoutingHttpContextExtensions.cs (4)
17/// Gets the <see cref="RouteData"/> associated with the provided <paramref name="httpContext"/>. 20/// <returns>The <see cref="RouteData"/>.</returns> 21public static RouteData GetRouteData(this HttpContext httpContext) 30/// Gets a route value from <see cref="RouteData.Values"/> associated with the provided
Microsoft.AspNetCore.Routing.Tests (5)
EndpointRoutingMiddlewareTest.cs (2)
101var routeData = httpContext.GetRouteData(); 124var routeData = httpContext.GetRouteData();
Tree\TreeRouterTest.cs (3)
1705var originalRouteData = context.RouteData; 1725var originalRouteData = context.RouteData; 1759var routeData = context.RouteData;