557 references to RouteValueDictionary
DeveloperExceptionPageSample (1)
Startup.cs (1)
19context.Request.RouteValues = new RouteValueDictionary(new
Microsoft.AspNetCore.Http.Abstractions.Tests (48)
RouteValueDictionaryTests.cs (48)
28var dict = new RouteValueDictionary(values: (object?)null); 62var other = new RouteValueDictionary(new { key = "value" }); 119var dict = new RouteValueDictionary(values); 141var dict = new RouteValueDictionary(values); 193var dict = new RouteValueDictionary(obj); 210var dict = new RouteValueDictionary(obj); 236var dict = new RouteValueDictionary(obj); 257var dict = new RouteValueDictionary(obj); 272var dict = new RouteValueDictionary(obj); 287var dict = new RouteValueDictionary(obj); 315var dict = new RouteValueDictionary(obj); 332var dict = new RouteValueDictionary(obj); 354var dictionary = new RouteValueDictionary(obj); 368var dict = new RouteValueDictionary(obj); 386var dict = new RouteValueDictionary(obj); 404var dict = new RouteValueDictionary(obj); 468var dict = new RouteValueDictionary(new { age = 30 }); 482var dict = new RouteValueDictionary(new { key = "value" }); 496var dict = new RouteValueDictionary(new { key = "value" }); 588var dict = new RouteValueDictionary(new { age = 30 }); 605var dict = new RouteValueDictionary(new { key = "value" }); 619var dict = new RouteValueDictionary(new { key = "value" }); 700var dict = new RouteValueDictionary(new { key = "value", }); 745var dict = new RouteValueDictionary(new { key = "value", }); 790var dict = new RouteValueDictionary(new { key = "value", }); 848var dict = new RouteValueDictionary(new { age = 30 }); 968var dict = new RouteValueDictionary(new { }); 983var dict = new RouteValueDictionary(new { key = "value" }); 1093var dict = new RouteValueDictionary(new { key = "value" }); 1113var dict = new RouteValueDictionary(new { key = "value" }); 1133var dict = new RouteValueDictionary(new { key = "value" }); 1154var dict = new RouteValueDictionary(new { key = "value" }); 1200var dict = new RouteValueDictionary(new { key = "value" }); 1215var dict = new RouteValueDictionary(new { key = "value" }); 1230var dict = new RouteValueDictionary(new { key = "value" }); 1428var dict = new RouteValueDictionary(new { }); 1443var dict = new RouteValueDictionary(new { key = "value" }); 1458var dict = new RouteValueDictionary(new { key = "value" }); 1473var dict = new RouteValueDictionary(new { key = "value" }); 1570var dict = new RouteValueDictionary(new { }); 1586var dict = new RouteValueDictionary(new { key = "value" }); 1603var dict = new RouteValueDictionary(new { key = value }); 1620var dict = new RouteValueDictionary(new { key = value }); 1783var dict = new RouteValueDictionary(new { key = "value", }); 1803var dict = new RouteValueDictionary(new { key = "value", }); 1941var dict = new RouteValueDictionary(new { key = "value" }); 1956var dict = new RouteValueDictionary(new { key = "value" }); 1971var dict = new RouteValueDictionary(new { key = "value" });
Microsoft.AspNetCore.Http.Microbenchmarks (6)
RouteValueDictionaryBenchmark.cs (6)
25_propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17" }); 89var propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17", area = "root" }); 96var propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17", area = "root" }); 103var propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17" }); 110var propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17" }); 183var propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17" });
Microsoft.AspNetCore.Http.Results (5)
AcceptedAtRoute.cs (1)
41: this(routeName, new RouteValueDictionary(routeValues))
AcceptedAtRouteOfT.cs (1)
44: this(routeName, new RouteValueDictionary(routeValues), value)
CreatedAtRoute.cs (1)
41: this(routeName, new RouteValueDictionary(routeValues))
CreatedAtRouteOfT.cs (1)
44: this(routeName, new RouteValueDictionary(routeValues), value)
RedirectToRouteHttpResult.cs (1)
99new RouteValueDictionary(routeValues),
Microsoft.AspNetCore.Http.Results.Tests (19)
AcceptedAtRouteOfTResultTests.cs (1)
100Assert.Equal(new RouteValueDictionary(values), linkGenerator.RouteValuesAddress.ExplicitValues);
AcceptedAtRouteResultTests.cs (1)
54Assert.Equal(new RouteValueDictionary(values), linkGenerator.RouteValuesAddress.ExplicitValues);
CreatedAtRouteOfTResultTests.cs (1)
70Assert.Equal(new RouteValueDictionary(values), linkGenerator.RouteValuesAddress.ExplicitValues);
CreatedAtRouteResultTests.cs (1)
53Assert.Equal(new RouteValueDictionary(values), linkGenerator.RouteValuesAddress.ExplicitValues);
ResultsTests.cs (6)
94Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 144Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 207Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 758Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 822Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 1530Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues);
TypedResultsTests.cs (9)
122Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 139Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 194Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 210Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 706Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 766Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 782Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 1312Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 1340Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues);
Microsoft.AspNetCore.Http.Tests (2)
Internal\DefaultHttpRequestTests.cs (2)
217request.RouteValues = new RouteValueDictionary(new { key = "value" }); 231RouteValues = new RouteValueDictionary(new { key = "customvalue" })
Microsoft.AspNetCore.Mvc.Core (18)
AcceptedAtActionResult.cs (1)
38RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
AcceptedAtRouteResult.cs (1)
46RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
Builder\ControllerEndpointRouteBuilderExtensions.cs (5)
114new RouteValueDictionary(defaults), 115new RouteValueDictionary(constraints), 116new RouteValueDictionary(dataTokens)); 155var defaultsDictionary = new RouteValueDictionary(defaults); 158var constraintsDictionary = new RouteValueDictionary(constraints);
Builder\MvcAreaRouteBuilderExtensions.cs (2)
123var defaultsDictionary = new RouteValueDictionary(defaults); 126var constraintsDictionary = new RouteValueDictionary(constraints);
CreatedAtActionResult.cs (1)
38RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
CreatedAtRouteResult.cs (1)
46RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
RedirectToActionResult.cs (1)
125RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
RedirectToPageResult.cs (1)
153RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
RedirectToRouteResult.cs (1)
122RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
Routing\ControllerLinkGeneratorExtensions.cs (1)
208var explicitValues = new RouteValueDictionary(values);
Routing\PageLinkGeneratorExtensions.cs (1)
208var explicitValues = new RouteValueDictionary(values);
Routing\UrlHelperBase.cs (1)
102return new RouteValueDictionary(values);
UrlHelperExtensions.cs (1)
478var routeValues = new RouteValueDictionary(values);
Microsoft.AspNetCore.Mvc.Core.Test (60)
Builder\MvcAreaRouteBuilderExtensionsTest.cs (1)
249var values = new RouteValueDictionary(new { area = areaName });
ConsumesAttributeTests.cs (1)
410foreach (var kvp in new RouteValueDictionary(routeValues))
Infrastructure\ActionSelectionTableTest.cs (15)
43var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 80var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 120var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 158var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 193var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 228var values = new RouteValueDictionary(new { controller = "Foo", action = "Index", }); 258var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 288var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 337var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 386var values = new RouteValueDictionary(new { controller = "HOME", action = "iNDex", }); 416var values = new RouteValueDictionary(new { area = "", controller = "Home", action = "Index", }); 447var values = new RouteValueDictionary(new { area = "", controller = "HoMe", action = "InDeX", }); 478var values = new RouteValueDictionary(new { area = (string)null, controller = "Home", action = "Index", }); 507var values = new RouteValueDictionary(new { foo = "", controller = "Home", action = "Index", }); 536var values = new RouteValueDictionary(new { foo = (string)null, controller = "Home", action = "Index", });
Infrastructure\ActionSelectorTest.cs (2)
1093new RouteValueDictionary(ambientValues), 1094new RouteValueDictionary(routeValues));
Routing\ActionEndpointFactoryTest.cs (6)
62defaults: new RouteValueDictionary(new { action = "TestAction" })); 143defaults: new RouteValueDictionary(new { controller = "TestController", action = "TestAction1" })); 165defaults: new RouteValueDictionary(new { controller = "TestController", action = "TestAction1" })); 299constraints: new RouteValueDictionary(new { action = "(TestAction1|TestAction2)" })); 317constraints: new RouteValueDictionary(new { action = "(TestAction1|TestAction2)" })); 462var routeValues = new RouteValueDictionary(requiredValues);
Routing\AttributeRouteTest.cs (1)
235Assert.Equal(new RouteValueDictionary(new { slug = "hello" }), e.Defaults);
Routing\ControllerActionEndpointDataSourceTest.cs (1)
567foreach (var kvp in new RouteValueDictionary(values))
Routing\ControllerLinkGeneratorExtensionsTest.cs (6)
64values: new RouteValueDictionary(new { query = "some?query" }), 91values: new RouteValueDictionary(new { query = "some?query" }), 123values: new RouteValueDictionary(new { query = "some?query" }), 150values: new RouteValueDictionary(new { query = "some?query" }), 184values: new RouteValueDictionary(new { query = "some?query" }), 233httpContext.Request.RouteValues = new RouteValueDictionary(ambientValues);
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (11)
173return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 212var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 219return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 243var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 250return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 300var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 307return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 339var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 346return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 401var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 408return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new
Routing\EndpointRoutingUrlHelperTest.cs (1)
163var endpoint = CreateEndpoint(template, new RouteValueDictionary(defaults), requiredValues, routeName: routeName);
Routing\PageLinkGeneratorExtensionsTest.cs (6)
35values: new RouteValueDictionary(new { id = 18, query = "some?query" }), 62values: new RouteValueDictionary(new { user = "jamesnk", query = "some?query" }), 93values: new RouteValueDictionary(new { id = 19, query = "some?query" }), 120values: new RouteValueDictionary(new { id = 19, query = "some?query" }), 154values: new RouteValueDictionary(new { query = "some?query" }), 203httpContext.Request.RouteValues = new RouteValueDictionary(ambientValues);
Routing\UrlHelperTest.cs (3)
104new RouteValueDictionary(new { controller = "Orders", action = "GetById" })); 109new RouteValueDictionary(new { id = "defaultid" })); 114new RouteValueDictionary(new { id = "defaultid" }));
Routing\UrlHelperTestBase.cs (6)
334values: new RouteValueDictionary( 355values: new RouteValueDictionary( 378values: new RouteValueDictionary( 401values: new RouteValueDictionary( 424values: new RouteValueDictionary( 533values: new RouteValueDictionary(
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
LinkBuilder.cs (1)
26var dictionary = new RouteValueDictionary(values);
Microsoft.AspNetCore.Mvc.RazorPages.Test (12)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (11)
190return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 223var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 230return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 274var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 281return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 304var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 311return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 342var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 349return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 402var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 409return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new
Infrastructure\PageActionEndpointDataSourceTest.cs (1)
275foreach (var kvp in new RouteValueDictionary(values))
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (3)
RouteDataTest.cs (3)
91new RouteValueDictionary(new { bleh = (string)null }), 137new RouteValueDictionary(new { route = "value2" }), 138new RouteValueDictionary(new { data = "token2" }));
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Rendering\HtmlHelperCheckboxTest.cs (1)
484var dictionary = new RouteValueDictionary(new { Property3 = "Property3Value" });
Microsoft.AspNetCore.Routing (13)
LinkGeneratorEndpointNameAddressExtensions.cs (4)
48new RouteValueDictionary(values), 120return generator.GetPathByAddress<string>(endpointName, new RouteValueDictionary(values), pathBase, fragment, options); 201new RouteValueDictionary(values), 315return generator.GetUriByAddress<string>(endpointName, new RouteValueDictionary(values), scheme, host, pathBase, fragment, options);
LinkGeneratorRouteValuesAddressExtensions.cs (4)
44var address = CreateAddress(httpContext, routeName, new(values)); 119var address = CreateAddress(httpContext: null, routeName, new(values)); 197var address = CreateAddress(httpContext, routeName, new(values)); 308var address = CreateAddress(httpContext: null, routeName, new(values));
MapRouteRouteBuilderExtensions.cs (3)
121new RouteValueDictionary(defaults), 122new RouteValueDictionary(constraints)!, 123new RouteValueDictionary(dataTokens),
Patterns\DefaultRoutePatternTransformer.cs (1)
27return SubstituteRequiredValues(original, new RouteValueDictionary(requiredValues));
Patterns\RoutePatternFactory.cs (1)
1154return values is null ? null : new RouteValueDictionary(values);
Microsoft.AspNetCore.Routing.Microbenchmarks (5)
EndpointRoutingBenchmarkBase.cs (1)
130context.Request.RouteValues = new RouteValueDictionary(ambientValues);
LinkGeneration\SingleRouteRouteValuesAddressSchemeBenchmark.cs (1)
43ExplicitValues = new RouteValueDictionary(new { controller = "Products", action = "Details" }),
LinkGeneration\SingleRouteWithConstraintsBenchmark.cs (1)
43values: new RouteValueDictionary(
LinkGeneration\SingleRouteWithNoParametersBenchmark.cs (1)
43values: new RouteValueDictionary(
LinkGeneration\SingleRouteWithParametersBenchmark.cs (1)
43values: new RouteValueDictionary(
Microsoft.AspNetCore.Routing.Tests (362)
ConstraintMatcherTest.cs (7)
22var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" }); 90var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" }); 110var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" }); 130var routeValueDictionary = new RouteValueDictionary(new { c = "value", d = "value" }); 150var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" }); 170var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" }); 199var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" });
Constraints\HttpMethodRouteConstraintTests.cs (4)
23var values = new RouteValueDictionary(new { }); 44var values = new RouteValueDictionary(new { }); 64var values = new RouteValueDictionary(new { httpMethod = httpMethod }); 84var values = new RouteValueDictionary(new { httpMethod = httpMethod });
Constraints\RegexInlineRouteConstraintTests.cs (3)
27var values = new RouteValueDictionary(new { controller = routeValue }); 46var values = new RouteValueDictionary(new { action = "abc" }); 74var values = new RouteValueDictionary(new { controller = "\u0130" }); // Turkish upper-case dotted I
Constraints\RegexRouteConstraintTests.cs (5)
31var values = new RouteValueDictionary(new { controller = routeValue }); 50var values = new RouteValueDictionary(new { controller = "abc" }); 69var values = new RouteValueDictionary(new { controller = "Abc" }); 88var values = new RouteValueDictionary(new { action = "abc" }); 116var values = new RouteValueDictionary(new { controller = "\u0130" }); // Turkish upper-case dotted I
Constraints\RequiredRouteConstraintTests.cs (4)
25new RouteValueDictionary(new { controller = "Home", action = "Index" }), 45new RouteValueDictionary(new { controller = "Home", action = "Index", area = (string)null }), 65new RouteValueDictionary(new { controller = "Home", action = "Index", area = string.Empty }), 85new RouteValueDictionary(new { controller = "Home", action = "Index", area = "Store" }),
Constraints\StringRouteConstraintTest.cs (7)
18var values = new RouteValueDictionary(new { controller = "home" }); 38var values = new RouteValueDictionary(new { controller = "home" }); 58var values = new RouteValueDictionary(new { controller = "home" }); 78var values = new RouteValueDictionary(new { controller = "home" }); 98var values = new RouteValueDictionary(new { controller = "admin" }); 118var values = new RouteValueDictionary(new { controller = "admin" }); 142var values = new RouteValueDictionary(new { controller = routeValue });
DefaultLinkGeneratorProcessTemplateTest.cs (58)
26values: new RouteValueDictionary(new { p1 = "Home", p3 = "bar", }), 51values: new RouteValueDictionary(new { path = routeValue, }), 83values: new RouteValueDictionary(new { path = routeValue, }), 106values: new RouteValueDictionary(new { path = "a/b b1/c c1" }), 129values: new RouteValueDictionary(new { name = "name with %special #characters" }), 152values: new RouteValueDictionary(new { color = new List<string> { "red", "green", "blue" } }), 175values: new RouteValueDictionary(new { items = new List<int> { 10, 20, 30 } }), 198values: new RouteValueDictionary(new { color = new List<string> { } }), 221values: new RouteValueDictionary(new { page = 1, color = new List<string> { "red", "green", "blue" }, message = "textfortest" }), 244values: new RouteValueDictionary(new { action = "Index" }), 272values: new RouteValueDictionary(new { action = "Index" }), 301values: new RouteValueDictionary(new { id = "18" }), 325values: new RouteValueDictionary(new { id = "18" }), 357values: new RouteValueDictionary(new { action = "П" }), 396values: new RouteValueDictionary(new { action = "Index", ShowStatus = "True", INFO = "DETAILED" }), 426values: new RouteValueDictionary(new { action = "Index" }), 461values: new RouteValueDictionary(new { action = "Index", ShowStatus = "True", INFO = "DETAILED" }), 491values: new RouteValueDictionary(new { action = "InDex" }), 524values: new RouteValueDictionary(new { action = "InDex" }), 561values: new RouteValueDictionary(new { action = "Index", ShowStatus = "True", INFO = "DETAILED" }), 599values: new RouteValueDictionary(new { action = "Index", ShowStatus = "True", INFO = "DETAILED" }), 633values: new RouteValueDictionary(new { action = "Index" }), 659values: new RouteValueDictionary(new { p1 = "abcd" }), 683values: new RouteValueDictionary(new { p1 = "hello", p2 = "1234" }), 709values: new RouteValueDictionary(new { p1 = "abcd" }), 733values: new RouteValueDictionary(new { p1 = "hello", p2 = "1234" }), 770values: new RouteValueDictionary(new { p1 = "hello", p2 = "1234" }), 797var expectedValues = new RouteValueDictionary( 804values: new RouteValueDictionary(new { action = "Store" }), 830var expectedValues = new RouteValueDictionary( 837values: new RouteValueDictionary(new { action = "Store" }), 862var expectedValues = new RouteValueDictionary( 869values: new RouteValueDictionary(new { controller = "Shopping" }), 896var expectedValues = new RouteValueDictionary( 903values: new RouteValueDictionary(new { action = "Store", thirdthing = "13" }), 933values: new RouteValueDictionary(new { action = "Index", controller = "Home", id = 4 }), 959values: new RouteValueDictionary(new { action = "Index", controller = "Home", id = "not-an-integer" }), 985values: new RouteValueDictionary(new { action = "Index", controller = "Home", id = 98 }), 1011values: new RouteValueDictionary(new { action = "Index", controller = "Home" }), 1037values: new RouteValueDictionary(new { action = "Index", controller = "Home", id = "not-an-integer" }), 1063values: new RouteValueDictionary(new { action = "Index", controller = "Home", id = 14 }), 1091values: new RouteValueDictionary(new { action = "Index", controller = "Home", id = 50 }), 1116values: new RouteValueDictionary(new { action = "Index", controller = "Home", name = "products" }), 1139values: new RouteValueDictionary(new { action = "Index", controller = "Home", name = "products" }), 1162values: new RouteValueDictionary(new { action = "Index", controller = "Home" }), 1187values: new RouteValueDictionary(new { action = "Index", controller = "Home", name = "products" }), 1212values: new RouteValueDictionary(new { action = "Index", controller = "Home" }), 1235values: new RouteValueDictionary(new { action = "Index", controller = "Home", name = "products", format = "json" }), 1259values: new RouteValueDictionary(new { action = "Index", controller = "Home", name = "products" }), 1282values: new RouteValueDictionary(new { action = "Index", controller = "Home" }), 1304values: new RouteValueDictionary(new { action = "Index", controller = "Home" }), 1327values: new RouteValueDictionary(new { }), 1350values: new RouteValueDictionary(new { }), 1373values: new RouteValueDictionary(new { }), 1477values: new RouteValueDictionary(explicitValues), 1505values: new RouteValueDictionary(new { c = "Products", a = "Edit" }), 1533values: new RouteValueDictionary(new { c = "Products", a = "List" }), 1641values: new RouteValueDictionary(explicitValues),
DefaultLinkGeneratorTest.cs (23)
87var path = linkGenerator.GetPathByAddress(1, values: new RouteValueDictionary(new { controller = "Home", action = "Index", })); 103var path = linkGenerator.GetPathByAddress(CreateHttpContext(), 1, values: new RouteValueDictionary(new { controller = "Home", action = "Index", })); 121values: new RouteValueDictionary(new { controller = "Home", action = "Index", }), 143var uri = linkGenerator.GetUriByAddress(httpContext, 1, values: new RouteValueDictionary(new { controller = "Home", action = "Index", })); 161values: new RouteValueDictionary(new { controller = "Home", action = "Index", }), 188values: new RouteValueDictionary(new { controller = "TestController", action = "Index", })); 214values: new RouteValueDictionary(new { controller = "TestController", action = "Index", }), 234values: new RouteValueDictionary(new { controller = "Home", action = "Index", }), 253values: new RouteValueDictionary(new { controller = "Home", action = "Index", }), 279values: new RouteValueDictionary(new { controller = "Home", action = "Index", }), 299values: new RouteValueDictionary(new { controller = "Home", action = "In?dex", query = "some?query" }), 373values: new RouteValueDictionary(new { controller = "Home", action = "In?dex", query = "some?query" }), 393values: new RouteValueDictionary(new { controller = "Home", action = "In?dex", query = "some?query" }), 422values: new RouteValueDictionary(new { controller = "Home", action = "In?dex", query = "some?query" }), 446values: new RouteValueDictionary(new { action = "Index", }), 447ambientValues: new RouteValueDictionary(new { controller = "Home", })); 470values: new RouteValueDictionary(new { action = "Index", }), 471ambientValues: new RouteValueDictionary(new { controller = "Home", })); 493values: new RouteValueDictionary(new { action = "Index", controller = "Home", }), 518values: new RouteValueDictionary(new { action = "Index", controller = "Home", }), 544values: new RouteValueDictionary(new { action = "Index", controller = "Home", }), 634httpContext.Request.RouteValues = new RouteValueDictionary(new { controller = "Home", action = "Index" }); 673httpContext.Request.RouteValues = new RouteValueDictionary(new { controller = "Home", action = "Index", });
LinkGeneratorEndpointNameExtensionsTest.cs (1)
27httpContext.Request.RouteValues = new RouteValueDictionary(new { p = "5", });
LinkGeneratorIntegrationTest.cs (2)
706ExplicitValues = new RouteValueDictionary(values), 707AmbientValues = new RouteValueDictionary(ambientValues),
LinkGeneratorRouteValuesAddressExtensionsTest.cs (7)
33httpContext.Request.RouteValues = new RouteValueDictionary(new { action = "Index", }); 40values: new RouteValueDictionary(new { controller = "Home", query = "some?query" }), 66values: new RouteValueDictionary(new { controller = "Home", action = "Index", query = "some?query" }), 97values: new RouteValueDictionary(new { controller = "Home", action = "Index", query = "some?query" }), 123values: new RouteValueDictionary(new { controller = "Home", action = "Index", query = "some?query" }), 158values: new RouteValueDictionary(new { controller = "Home", action = "Index", query = "some?query" }), 190values: new RouteValueDictionary(new { action = "Index", query = "some?query" }),
LinkGeneratorTestBase.cs (1)
17httpContext.Request.RouteValues = new RouteValueDictionary(ambientValues);
Matching\MatcherAssert.cs (2)
13AssertRouteValuesEqual(new RouteValueDictionary(expectedValues), actualValues); 38AssertMatch(httpContext, expected, new RouteValueDictionary(values));
Matching\MatcherConformanceTest.SingleEndpoint.cs (3)
199var values = new RouteValueDictionary(new { p = "14", }); 214var values = new RouteValueDictionary(new { p = "14", }); 229var values = new RouteValueDictionary(new { p = "14", });
Patterns\RoutePatternMatcherTest.cs (29)
434new RouteValueDictionary(new { lang = "en", region = "US" })); 444new RouteValueDictionary(new { lang = "en", region = "US" })); 454new RouteValueDictionary(new { lang = "en", region = "US" })); 464new RouteValueDictionary(new { lang = "en", region = "US" })); 494new RouteValueDictionary(new { lang = "en" })); 524new RouteValueDictionary(new { lang = "en" })); 534new RouteValueDictionary(new { lang = "en" })); 544new RouteValueDictionary(new { lang = "en" })); 553new RouteValueDictionary(new { action = "Index", id = (string)null }), 554new RouteValueDictionary(new { controller = "home", action = "index", id = (string)null })); 563new RouteValueDictionary(new { lang = "xx", region = "yy" }), 574new RouteValueDictionary(new { Controller = "Home", id = "123", Param1 = "p1" })); 584new RouteValueDictionary(new { Controller = "Home", action = "index" })); 594new RouteValueDictionary(new { Controller = "Home", action = "index" })); 604new RouteValueDictionary(new { Controller = "Home", action = "index" })); 614new RouteValueDictionary(new { Controller = "Home", action = "index" })); 624new RouteValueDictionary(new { Controller = "Home" })); 634new RouteValueDictionary(new { Controller = "Home" })); 644new RouteValueDictionary(new { Controller = "Home", id = "123", Param1 = "p1" })); 684new RouteValueDictionary(new 691new RouteValueDictionary(new { controller = "Home", action = "ShowPilot", missionId = "777", name = "12345./foobar" })); 754var values = new RouteValueDictionary(new { p2 = "hello" }); 772var values = new RouteValueDictionary(new { p2 = "overridden" }); 790var values = new RouteValueDictionary(new { p2 = "overridden" }); 862new RouteValueDictionary(new { language = "en", locale = "US" }), 872new RouteValueDictionary(new { language = "en", locale = "US" }), 882new RouteValueDictionary(new { language = "en", locale = "US" }), 892new RouteValueDictionary(new { language = "en", locale = "US" }), 1094new RouteValueDictionary(defaults));
RouteCollectionTest.cs (2)
410new RouteValueDictionary(new { controller = "Test", action = "Index" }), 422new RouteValueDictionary(new { a = "Test", c = "Foo" }),
RouteConstraintBuilderTest.cs (1)
161var routeValues = new RouteValueDictionary(new { controller = routeValue });
RouteTest.cs (21)
81dataTokens: new RouteValueDictionary(new { today = "Friday" }), 136constraints: new RouteValueDictionary(new { action = constraint }), 137dataTokens: new RouteValueDictionary(new { today = "Friday" }), 666values: new RouteValueDictionary(new { name = nameRouteValue }), 667ambientValues: new RouteValueDictionary(new { controller = "Home", action = "Index" })); 877new RouteValueDictionary(new { p2 = "\\d{4}" })); 896new RouteValueDictionary(new { p2 = "\\d{4}" })); 918new RouteValueDictionary(new { p2 = "\\d{4}" })); 937new RouteValueDictionary(new { p2 = "\\d{4}" })); 971new RouteValueDictionary(new { p2 = target.Object })); 1002var expectedValues = new RouteValueDictionary( 1033var expectedValues = new RouteValueDictionary( 1063var expectedValues = new RouteValueDictionary( 1094var expectedValues = new RouteValueDictionary( 1503return CreateVirtualPathContext(new RouteValueDictionary(values), null); 1508return CreateVirtualPathContext(new RouteValueDictionary(values), new RouteValueDictionary(ambientValues)); 1801new RouteValueDictionary(defaults), 1802new RouteValueDictionary(constraints), 1803new RouteValueDictionary(dataTokens), 1827new RouteValueDictionary(defaults),
RouteValuesAddressSchemeTest.cs (12)
169ExplicitValues = new RouteValueDictionary(new { id = 8 }), 170AmbientValues = new RouteValueDictionary(new { urgent = false }), 194ExplicitValues = new RouteValueDictionary(new { id = 7 }), 195AmbientValues = new RouteValueDictionary(new { zipCode = 3500 }), 225ExplicitValues = new RouteValueDictionary(new { id = 12 }), 226AmbientValues = new RouteValueDictionary(new { zipCode = 3500 }), 251ExplicitValues = new RouteValueDictionary(new { id = 7 }), 252AmbientValues = new RouteValueDictionary(new { zipCode = 3500 }), 275ExplicitValues = new RouteValueDictionary(new { id = 10 }), 276AmbientValues = new RouteValueDictionary(new { controller = "Home", action = "Index" }), 299ExplicitValues = new RouteValueDictionary(new { id = 10 }), 300AmbientValues = new RouteValueDictionary(new { controller = "Orders", action = "GetById" }),
Template\TemplateBinderTests.cs (134)
19new RouteValueDictionary(new {val1 = "", val2 = ""}), 20new RouteValueDictionary(new {val2 = "SomeVal2"}), 25new RouteValueDictionary(new {val1 = "", val2 = ""}), 26new RouteValueDictionary(new {val1 = "a"}), 31new RouteValueDictionary(new {val1 = "", val3 = ""}), 32new RouteValueDictionary(new {val2 = "a"}), 37new RouteValueDictionary(new {val1 = "", val2 = ""}), 38new RouteValueDictionary(new {val1 = "a", val2 = "b"}), 43new RouteValueDictionary(new {val1 = "", val2 = "", val3 = ""}), 44new RouteValueDictionary(new {val1 = "a", val2 = "b", val3 = "c"}), 49new RouteValueDictionary(new {val1 = "", val2 = "", val3 = ""}), 50new RouteValueDictionary(new {val1 = "a", val2 = "b"}), 55new RouteValueDictionary(new {val1 = "", val2 = "", val3 = ""}), 56new RouteValueDictionary(new {val1 = "a"}), 61new RouteValueDictionary(new {val1 = "42", val2 = "", val3 = ""}), 67new RouteValueDictionary(new {val1 = "42", val2 = (string)null, val3 = (string)null}), 73new RouteValueDictionary(new {val1 = "21", val2 = "", val3 = "", val4 = ""}), 74new RouteValueDictionary(new {val1 = "42", val2 = "11", val3 = "", val4 = ""}), 79new RouteValueDictionary(new {val1 = "21", val2 = "", val3 = ""}), 80new RouteValueDictionary(new {val1 = "42"}), 85new RouteValueDictionary(new {val1 = "21", val2 = "", val3 = "", val4 = ""}), 86new RouteValueDictionary(new {val1 = "42", val2 = "11"}), 91new RouteValueDictionary(new {val1 = "21", val2 = (string)null, val3 = (string)null}), 92new RouteValueDictionary(new {val1 = "42"}), 97new RouteValueDictionary(new {val1 = "21", val2 = (string)null, val3 = (string)null, val4 = (string)null}), 98new RouteValueDictionary(new {val1 = "42", val2 = "11"}), 150new RouteValueDictionary(new { lang = "en", region = "US" }), 151new RouteValueDictionary(new { lang = "xx", region = "yy" }), 161new RouteValueDictionary(new { lang = "en", region = "US" }), 162new RouteValueDictionary(new { lang = "xx", region = "yy" }), 172new RouteValueDictionary(new { lang = "en", region = "US" }), 173new RouteValueDictionary(new { lang = "xx", region = "yy" }), 185new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2"}), 186new RouteValueDictionary(new {val3 = "someval3"}), 187new RouteValueDictionary(new {val3 = "someval3"}), 192new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2"}), 193new RouteValueDictionary(new {val3 = "someval3a"}), 194new RouteValueDictionary(new {val3 = "someval3v"}), 199new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2"}), 200new RouteValueDictionary(new {val3 = "someval3a"}), 206new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2"}), 208new RouteValueDictionary(new {val3 = "someval3v"}), 213new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2"}), 220new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2" }), 222new RouteValueDictionary(new {val4 = "someval4", val3 = "someval3" }), 228new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2" }), 230new RouteValueDictionary(new {val3 = "someval3" }), 236new RouteValueDictionary(new { }), 238new RouteValueDictionary(new {val2 = "someval2" }), 243new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2" }), 245new RouteValueDictionary(new {val3 = "someval3" }), 299new RouteValueDictionary(new { lang = "en", region = "US" }), 300new RouteValueDictionary(new { lang = "xx", region = "yy" }), 310new RouteValueDictionary(new { lang = "en", region = "US" }), 311new RouteValueDictionary(new { lang = "", region = "yy" }), 321new RouteValueDictionary(new { lang = "en", region = "US" }), 322new RouteValueDictionary(new { lang = "xx", region = "" }), 332new RouteValueDictionary(new { lang = "en" }), 333new RouteValueDictionary(new { lang = "xx" }), 343new RouteValueDictionary(new { lang = "en" }), 344new RouteValueDictionary(new { lang = "xx" }), 354new RouteValueDictionary(new { lang = "en" }), 355new RouteValueDictionary(new { lang = "xx" }), 365new RouteValueDictionary(new { lang = "en" }), 366new RouteValueDictionary(new { lang = "xx" }), 375new RouteValueDictionary(new { action = "Index", id = (string)null }), 376new RouteValueDictionary(new { controller = "home", action = "list", id = (string)null }), 377new RouteValueDictionary(new { controller = "products" }), 386new RouteValueDictionary(new { lang = "xx", region = "yy" }), 387new RouteValueDictionary(new { lang = "en", region = "US" }), 388new RouteValueDictionary(new { lang = "zz" }), 398new RouteValueDictionary(new { id = "defaultid" }), 399new RouteValueDictionary(new { controller = "home", action = "oldaction" }), 400new RouteValueDictionary(new { action = "newaction" }), 410new RouteValueDictionary(new { }), 411new RouteValueDictionary(new { controller = "" }), 421new RouteValueDictionary(new { }), 422new RouteValueDictionary(new { controller = (string)null }), 432new RouteValueDictionary(new { }), 433new RouteValueDictionary(new { controller = "home" }), 443new RouteValueDictionary(new { id = (string)null }), 444new RouteValueDictionary(new { controller = "home", action = "oldaction", id = (string)null }), 445new RouteValueDictionary(new { action = "newaction" }), 454new RouteValueDictionary(new { language = "en", locale = "US" }), 456new RouteValueDictionary(new { controller = "Orders" }), 465new RouteValueDictionary(new { action = "Index", id = "" }), 466new RouteValueDictionary(new { controller = "Home", action = "Index", id = "" }), 467new RouteValueDictionary(new { controller = "Home", action = "TestAction", id = "1", format = (string)null }), 544new RouteValueDictionary(new { year = 1995, occasion = "Christmas", action = "Play", SafeParam = "SafeParamValue" }), 567new RouteValueDictionary(new { action = "Default" }), 585new RouteValueDictionary(new { controller = "Home" }), 586new RouteValueDictionary(new { controller = "home", action = "Index", id = (string)null }), 594var values = new RouteValueDictionary(new { controller = "products", action = "showcategory", id = 123, maxPrice = 100 }); 599new RouteValueDictionary(new { controller = "Home" }), 600new RouteValueDictionary(new { controller = "home", action = "Index", id = (string)null }), 611new RouteValueDictionary(new { controller = "Home", Custom = "customValue" }), 612new RouteValueDictionary(new { controller = "Home", action = "Index", id = (string)null }), 613new RouteValueDictionary( 633new RouteValueDictionary(new { controller = "ho%me", action = "li st" }), 644new RouteValueDictionary(new { controller = "/home", action = "/my/index" }), 654new RouteValueDictionary(new { id = "defaultid" }), 655new RouteValueDictionary(new { p1 = "v1" }), 656new RouteValueDictionary(new { p2 = "v2a/v2b" }), 665new RouteValueDictionary(new { id = "defaultid" }), 666new RouteValueDictionary(new { p1 = "v1" }), 667new RouteValueDictionary(new { p2 = "" }), 676new RouteValueDictionary(new { id = "defaultid" }), 677new RouteValueDictionary(new { p1 = "v1" }), 678new RouteValueDictionary(new { p2 = (string)null }), 689new RouteValueDictionary(new { }), 700new RouteValueDictionary(new { }), 715var routeValues = new RouteValueDictionary(new { controller = "Test", action = "Index" }); 1200new RouteValueDictionary(defaults), 1201new RouteValueDictionary(ambientValues), 1202new RouteValueDictionary(values), 1233var defaults = new RouteValueDictionary(new { controller = "Home", action = "Index", area = (string)null }); 1234var ambientValues = new RouteValueDictionary(new { controller = "Rail", action = "Schedule", area = "Travel" }); 1235var explicitValues = new RouteValueDictionary(new { controller = "Home", action = "Index", area = "" }); 1262var defaults = new RouteValueDictionary(new { controller = "Home", action = "Index", area = "" }); 1263var ambientValues = new RouteValueDictionary(new { controller = "Rail", action = "Schedule", area = "Travel" }); 1264var explicitValues = new RouteValueDictionary(new { controller = "Home", action = "Index", area = (string)null }); 1292var defaults = new RouteValueDictionary(new { controller = "ConventionalTransformer", action = "Param" }); 1293var ambientValues = new RouteValueDictionary(new { controller = "ConventionalTransformer", action = "Param" }); 1294var explicitValues = new RouteValueDictionary(new { controller = "ConventionalTransformer", action = "Param", param = "MyValue" }); 1322var defaults = new RouteValueDictionary(new { action = "Index" }); 1323var ambientValues = new RouteValueDictionary(new { area = "Travel", controller = "Rail", action = "Index" }); 1324var explicitValues = new RouteValueDictionary(new { controller = "Flight", action = "Index" }); 1353var ambientValues = new RouteValueDictionary(new { page = "/LGAnotherPage", id = "17" }); 1354var explicitValues = new RouteValueDictionary(new { controller = "LG2", action = "SomeAction" }); 1387var ambientValues = new RouteValueDictionary(new { area = "Admin", page = "/LGAnotherPage", id = "17" }); 1388var explicitValues = new RouteValueDictionary(new { controller = "LG2", action = "SomeAction" }); 1416var defaults = new RouteValueDictionary(new { controller = "LG3", action = "SomeAction", area = "Admin" }); 1417var ambientValues = new RouteValueDictionary(new { controller = "LG1", action = "LinkToAnArea", id = "17" }); 1418var explicitValues = new RouteValueDictionary(new { controller = "LG3", area = "Admin", action = "SomeAction", anothervalue = "5" });
Template\TemplateMatcherTests.cs (29)
433new RouteValueDictionary(new { lang = "en", region = "US" })); 443new RouteValueDictionary(new { lang = "en", region = "US" })); 453new RouteValueDictionary(new { lang = "en", region = "US" })); 463new RouteValueDictionary(new { lang = "en", region = "US" })); 493new RouteValueDictionary(new { lang = "en" })); 523new RouteValueDictionary(new { lang = "en" })); 533new RouteValueDictionary(new { lang = "en" })); 543new RouteValueDictionary(new { lang = "en" })); 552new RouteValueDictionary(new { action = "Index", id = (string)null }), 553new RouteValueDictionary(new { controller = "home", action = "index", id = (string)null })); 562new RouteValueDictionary(new { lang = "xx", region = "yy" }), 573new RouteValueDictionary(new { Controller = "Home", id = "123", Param1 = "p1" })); 583new RouteValueDictionary(new { Controller = "Home", action = "index" })); 593new RouteValueDictionary(new { Controller = "Home", action = "index" })); 603new RouteValueDictionary(new { Controller = "Home", action = "index" })); 613new RouteValueDictionary(new { Controller = "Home", action = "index" })); 623new RouteValueDictionary(new { Controller = "Home" })); 633new RouteValueDictionary(new { Controller = "Home" })); 643new RouteValueDictionary(new { Controller = "Home", id = "123", Param1 = "p1" })); 683new RouteValueDictionary(new 690new RouteValueDictionary(new { controller = "Home", action = "ShowPilot", missionId = "777", name = "12345./foobar" })); 753var values = new RouteValueDictionary(new { p2 = "hello" }); 771var values = new RouteValueDictionary(new { p2 = "overridden" }); 789var values = new RouteValueDictionary(new { p2 = "overridden" }); 861new RouteValueDictionary(new { language = "en", locale = "US" }), 871new RouteValueDictionary(new { language = "en", locale = "US" }), 881new RouteValueDictionary(new { language = "en", locale = "US" }), 891new RouteValueDictionary(new { language = "en", locale = "US" }), 1093new RouteValueDictionary(defaults));
TestObjects\TestMatcher.cs (1)
20c.Request.RouteValues = new RouteValueDictionary(new { controller = "Home", action = "Index" });
Tree\LinkGenerationDecisionTreeTest.cs (3)
745match.Entry.RequiredLinkValues = new RouteValueDictionary(requiredValues); 759new RouteValueDictionary(ambientValues), 760new RouteValueDictionary(values));
Tree\TreeRouterTest.cs (3)
2009new RouteValueDictionary(ambientValues), 2010new RouteValueDictionary(values), 2043requiredLinkValues: new RouteValueDictionary(requiredValues),
Mvc.RoutingWebSite (1)
StartupRoutingDifferentBranches.cs (1)
95return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new { controller = "Branches", action = "Index" }));