992 instantiations of RouteValueDictionary
DeveloperExceptionPageSample (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (8)
Microsoft.AspNetCore.Http (1)
Microsoft.AspNetCore.Http.Abstractions (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (119)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
Microsoft.AspNetCore.Http.Microbenchmarks (19)
RouteValueDictionaryBenchmark.cs (19)
18_arrayValues = new RouteValueDictionary()
24_arrayValuesEmpty = new RouteValueDictionary();
25_propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17" });
31new RouteValueDictionary(_arrayValuesEmpty);
37return new RouteValueDictionary(_arrayValues);
43var dictionary = new RouteValueDictionary
53var dictionary = new RouteValueDictionary
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" });
117var arrayValues = new RouteValueDictionary
130var arrayValues = new RouteValueDictionary
143var arrayValues = new RouteValueDictionary
155var arrayValues = new RouteValueDictionary
167var arrayValues = new RouteValueDictionary()
183var propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17" });
271var dictionary = new RouteValueDictionary
289var dictionary = new RouteValueDictionary
Microsoft.AspNetCore.Http.Results (10)
Microsoft.AspNetCore.Http.Results.Tests (55)
ResultsTests.cs (23)
94Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues);
103var routeValues = new RouteValueDictionary { ["foo"] = 123 };
127Assert.Equal(new RouteValueDictionary(), result.RouteValues);
144Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues);
153var routeValues = new RouteValueDictionary { ["foo"] = 123 };
177Assert.Equal(new RouteValueDictionary(), result.RouteValues);
191Assert.Equal(new RouteValueDictionary(), result.RouteValues);
207Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues);
758Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues);
767var routeValues = new RouteValueDictionary { ["foo"] = 123 };
791Assert.Equal(new RouteValueDictionary(), result.RouteValues);
805Assert.Equal(new RouteValueDictionary(), result.RouteValues);
822Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues);
831var routeValues = new RouteValueDictionary { ["foo"] = 123 };
857Assert.Equal(new RouteValueDictionary(), result.RouteValues);
874Assert.Equal(new RouteValueDictionary(), result.RouteValues);
889Assert.Equal(new RouteValueDictionary(), result.RouteValues);
904Assert.Equal(new RouteValueDictionary(), result.RouteValues);
916Assert.Equal(new RouteValueDictionary(), result.RouteValues);
1530Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues);
1541var routeValues = new RouteValueDictionary { ["foo"] = 123 };
1563Assert.Equal(new RouteValueDictionary(), result.RouteValues);
1574Assert.Equal(new RouteValueDictionary(), result.RouteValues);
TypedResultsTests.cs (18)
122Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues);
139Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues);
153Assert.Equal(new RouteValueDictionary(), result.RouteValues);
167Assert.Equal(new RouteValueDictionary(), result.RouteValues);
194Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues);
210Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues);
706Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues);
723Assert.Equal(new RouteValueDictionary(), result.RouteValues);
739Assert.Equal(new RouteValueDictionary(), result.RouteValues);
751Assert.Equal(new RouteValueDictionary(), result.RouteValues);
766Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues);
782Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues);
797Assert.Equal(new RouteValueDictionary(), result.RouteValues);
811Assert.Equal(new RouteValueDictionary(), result.RouteValues);
1312Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues);
1326Assert.Equal(new RouteValueDictionary(), result.RouteValues);
1340Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues);
1353Assert.Equal(new RouteValueDictionary(), result.RouteValues);
Microsoft.AspNetCore.Http.Tests (2)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Mvc.Core (26)
Microsoft.AspNetCore.Mvc.Core.Test (104)
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", });
ModelBinding\RouteValueProviderTests.cs (14)
16var values = new RouteValueDictionary(new Dictionary<string, object>
33var values = new RouteValueDictionary(new Dictionary<string, object>
51var values = new RouteValueDictionary(new Dictionary<string, object>
68var values = new RouteValueDictionary(new Dictionary<string, object>
87var values = new RouteValueDictionary(new Dictionary<string, object>
104var values = new RouteValueDictionary(new Dictionary<string, object>
121var values = new RouteValueDictionary(new Dictionary<string, object>
142var values = new RouteValueDictionary(new Dictionary<string, object>
163var values = new RouteValueDictionary(new Dictionary<string, object>
182var values = new RouteValueDictionary(new Dictionary<string, object>
200var values = new RouteValueDictionary(new Dictionary<string, object>
217var values = new RouteValueDictionary(new Dictionary<string, object>
234var values = new RouteValueDictionary();
255var values = new RouteValueDictionary();
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (12)
142return new ValueTask<RouteValueDictionary>(new RouteValueDictionary());
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
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.RazorPages.Test (19)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (12)
159return new ValueTask<RouteValueDictionary>(new RouteValueDictionary());
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
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (7)
Microsoft.AspNetCore.Mvc.TagHelpers (6)
Microsoft.AspNetCore.Mvc.Test (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
Microsoft.AspNetCore.OutputCaching.Tests (4)
Microsoft.AspNetCore.Routing (40)
LinkGeneratorEndpointNameAddressExtensions.cs (7)
48new RouteValueDictionary(values),
88values ?? new(),
120return generator.GetPathByAddress<string>(endpointName, new RouteValueDictionary(values), pathBase, fragment, options);
148return generator.GetPathByAddress<string>(endpointName, values ?? new(), pathBase, fragment, options);
201new RouteValueDictionary(values),
260values ?? new(),
315return generator.GetUriByAddress<string>(endpointName, new RouteValueDictionary(values), scheme, host, pathBase, fragment, options);
Microsoft.AspNetCore.Routing.Abstractions (8)
Microsoft.AspNetCore.Routing.Microbenchmarks (14)
Microsoft.AspNetCore.Routing.Tests (528)
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" }),
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 (26)
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" });
636var values = new RouteValueDictionary();
673httpContext.Request.RouteValues = new RouteValueDictionary(new { controller = "Home", action = "Index", });
675var values = new RouteValueDictionary();
713var values = new RouteValueDictionary();
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" }),
Matching\MatcherAssert.cs (5)
13AssertRouteValuesEqual(new RouteValueDictionary(expectedValues), actualValues);
28AssertMatch(httpContext, expected, new RouteValueDictionary());
33AssertMatch(httpContext, expected, new RouteValueDictionary(), ignoreValues);
38AssertMatch(httpContext, expected, new RouteValueDictionary(values));
52AssertMatch(httpContext, expected, new RouteValueDictionary(zipped));
Patterns\RoutePatternMatcherTest.cs (72)
17var values = new RouteValueDictionary();
35var values = new RouteValueDictionary();
50var values = new RouteValueDictionary();
68var values = new RouteValueDictionary();
83var values = new RouteValueDictionary();
100var values = new RouteValueDictionary();
123var values = new RouteValueDictionary();
156var values = new RouteValueDictionary();
191var values = new RouteValueDictionary();
229var values = new RouteValueDictionary();
244var values = new RouteValueDictionary();
260var values = new RouteValueDictionary();
275var values = new RouteValueDictionary();
291var values = new RouteValueDictionary();
307var values = new RouteValueDictionary();
324var values = new RouteValueDictionary();
339var values = new RouteValueDictionary();
354var values = new RouteValueDictionary();
376var values = new RouteValueDictionary();
391var values = new RouteValueDictionary();
412var values = new RouteValueDictionary();
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" }));
654new RouteValueDictionary());
664new RouteValueDictionary());
674new RouteValueDictionary());
684new RouteValueDictionary(new
691new RouteValueDictionary(new { controller = "Home", action = "ShowPilot", missionId = "777", name = "12345./foobar" }));
700var values = new RouteValueDictionary();
718var values = new RouteValueDictionary();
736var values = new RouteValueDictionary();
754var values = new RouteValueDictionary(new { p2 = "hello" });
772var values = new RouteValueDictionary(new { p2 = "overridden" });
790var values = new RouteValueDictionary(new { p2 = "overridden" });
843new RouteValueDictionary());
852new RouteValueDictionary() { { " ", "not a space" }, { "op.tional", "default value" }, { "ran!dom", "va@lue" } },
853new RouteValueDictionary() { { " ", "space" }, { ".!$%", "weimatch" }, { "dynamic.data", "omatcherid" }, { "op.tional", "default value" }, { "ran!dom", "va@lue" } });
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" }),
893new RouteValueDictionary { { "language", "xx" }, { "locale", "yy" }, { "controller", "foo" } });
903var values = new RouteValueDictionary();
922var values = new RouteValueDictionary();
941var values = new RouteValueDictionary();
959var values = new RouteValueDictionary();
976var values = new RouteValueDictionary();
1001var values = new RouteValueDictionary();
1024var values = new RouteValueDictionary();
1047var values = new RouteValueDictionary();
1064var values = new RouteValueDictionary();
1081var values = new RouteValueDictionary();
1094new RouteValueDictionary(defaults));
1106defaults ?? new RouteValueDictionary());
1108var values = new RouteValueDictionary();
RouteCollectionTest.cs (13)
130var pathContextValues = new RouteValueDictionary { { "controller", virtualPath } };
141var expectedDataTokens = dataTokens ?? new RouteValueDictionary();
337new RouteValueDictionary { { "controller", "Home" }, { "action", "Index" } },
343new RouteValueDictionary { { "controller", "Home" }, { "action", "Index" } },
349new RouteValueDictionary { { "action", "Create" } },
355new RouteValueDictionary {
365new RouteValueDictionary {
410new RouteValueDictionary(new { controller = "Test", action = "Index" }),
422new RouteValueDictionary(new { a = "Test", c = "Foo" }),
485yield return new object[] { new RouteValueDictionary(), null };
486yield return new object[] { new RouteValueDictionary() { { "tokenKey", "tokenValue" } }, null };
489yield return new object[] { new RouteValueDictionary(), "routerA" };
490yield return new object[] { new RouteValueDictionary() { { "tokenKey", "tokenValue" } }, "routerA" };
RouteTest.cs (28)
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" }));
766new RouteValueDictionary() { { "ThisShouldBeIgnored", "" } };
775var expectedDataTokens = dataTokens ?? new RouteValueDictionary();
816var expectedDataTokens = dataTokens ?? new RouteValueDictionary();
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));
1542new RouteValueDictionary { { "key1", "data1" }, { "key2", 13 } },
1753yield return new object[] { new RouteValueDictionary() };
1754yield return new object[] { new RouteValueDictionary() { { "tokenKeyA", "tokenValueA" } } };
1801new RouteValueDictionary(defaults),
1802new RouteValueDictionary(constraints),
1803new RouteValueDictionary(dataTokens),
1812new RouteValueDictionary(),
1827new RouteValueDictionary(defaults),
RouteValuesAddressSchemeTest.cs (14)
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" }),
327ExplicitValues = new RouteValueDictionary(),
328AmbientValues = new RouteValueDictionary(),
Template\TemplateBinderTests.cs (155)
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 = ""}),
62new RouteValueDictionary(),
67new RouteValueDictionary(new {val1 = "42", val2 = (string)null, val3 = (string)null}),
68new RouteValueDictionary(),
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"}),
201new RouteValueDictionary(),
206new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2"}),
207new RouteValueDictionary(),
208new RouteValueDictionary(new {val3 = "someval3v"}),
213new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2"}),
214new RouteValueDictionary(),
215new RouteValueDictionary(),
220new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2" }),
221new RouteValueDictionary(),
222new RouteValueDictionary(new {val4 = "someval4", val3 = "someval3" }),
228new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2" }),
229new RouteValueDictionary(),
230new RouteValueDictionary(new {val3 = "someval3" }),
236new RouteValueDictionary(new { }),
237new RouteValueDictionary(),
238new RouteValueDictionary(new {val2 = "someval2" }),
243new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2" }),
244new RouteValueDictionary(),
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" }),
455new RouteValueDictionary(),
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 }),
530var ambientValues = new RouteValueDictionary();
538var values = new RouteValueDictionary();
544new RouteValueDictionary(new { year = 1995, occasion = "Christmas", action = "Play", SafeParam = "SafeParamValue" }),
554var ambientValues = new RouteValueDictionary();
561var values = new RouteValueDictionary();
567new RouteValueDictionary(new { action = "Default" }),
576var values = new RouteValueDictionary();
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" }),
634new RouteValueDictionary(),
644new RouteValueDictionary(new { controller = "/home", action = "/my/index" }),
645new RouteValueDictionary(),
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 { }),
714var ambientValues = new RouteValueDictionary();
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" });
1352var defaults = new RouteValueDictionary();
1353var ambientValues = new RouteValueDictionary(new { page = "/LGAnotherPage", id = "17" });
1354var explicitValues = new RouteValueDictionary(new { controller = "LG2", action = "SomeAction" });
1386var defaults = new RouteValueDictionary();
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 (72)
16var values = new RouteValueDictionary();
34var values = new RouteValueDictionary();
49var values = new RouteValueDictionary();
67var values = new RouteValueDictionary();
82var values = new RouteValueDictionary();
99var values = new RouteValueDictionary();
122var values = new RouteValueDictionary();
155var values = new RouteValueDictionary();
190var values = new RouteValueDictionary();
228var values = new RouteValueDictionary();
243var values = new RouteValueDictionary();
259var values = new RouteValueDictionary();
274var values = new RouteValueDictionary();
290var values = new RouteValueDictionary();
306var values = new RouteValueDictionary();
323var values = new RouteValueDictionary();
338var values = new RouteValueDictionary();
353var values = new RouteValueDictionary();
375var values = new RouteValueDictionary();
390var values = new RouteValueDictionary();
411var values = new RouteValueDictionary();
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" }));
653new RouteValueDictionary());
663new RouteValueDictionary());
673new RouteValueDictionary());
683new RouteValueDictionary(new
690new RouteValueDictionary(new { controller = "Home", action = "ShowPilot", missionId = "777", name = "12345./foobar" }));
699var values = new RouteValueDictionary();
717var values = new RouteValueDictionary();
735var values = new RouteValueDictionary();
753var values = new RouteValueDictionary(new { p2 = "hello" });
771var values = new RouteValueDictionary(new { p2 = "overridden" });
789var values = new RouteValueDictionary(new { p2 = "overridden" });
842new RouteValueDictionary());
851new RouteValueDictionary() { { " ", "not a space" }, { "op.tional", "default value" }, { "ran!dom", "va@lue" } },
852new RouteValueDictionary() { { " ", "space" }, { ".!$%", "weimatch" }, { "dynamic.data", "omatcherid" }, { "op.tional", "default value" }, { "ran!dom", "va@lue" } });
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" }),
892new RouteValueDictionary { { "language", "xx" }, { "locale", "yy" }, { "controller", "foo" } });
902var values = new RouteValueDictionary();
921var values = new RouteValueDictionary();
940var values = new RouteValueDictionary();
958var values = new RouteValueDictionary();
975var values = new RouteValueDictionary();
1000var values = new RouteValueDictionary();
1023var values = new RouteValueDictionary();
1046var values = new RouteValueDictionary();
1063var values = new RouteValueDictionary();
1080var values = new RouteValueDictionary();
1093new RouteValueDictionary(defaults));
1105defaults ?? new RouteValueDictionary());
1107var values = new RouteValueDictionary();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.StaticAssets (1)
Mvc.RoutingWebSite (5)
969 references to RouteValueDictionary
Microsoft.AspNetCore.Diagnostics (5)
Microsoft.AspNetCore.Diagnostics.Abstractions (4)
Microsoft.AspNetCore.Http (4)
Microsoft.AspNetCore.Http.Abstractions (26)
Microsoft.AspNetCore.Http.Abstractions.Tests (129)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Microbenchmarks (40)
RouteValueDictionaryBenchmark.cs (40)
10private RouteValueDictionary _arrayValues;
11private RouteValueDictionary _propertyValues;
12private RouteValueDictionary _arrayValuesEmpty;
35public RouteValueDictionary Ctor_Values_RouteValueDictionary_Array()
41public RouteValueDictionary AddSingleItem()
43var dictionary = new RouteValueDictionary
51public RouteValueDictionary AddThreeItems()
53var dictionary = new RouteValueDictionary
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" });
117var arrayValues = new RouteValueDictionary
130var arrayValues = new RouteValueDictionary
143var arrayValues = new RouteValueDictionary
155var arrayValues = new RouteValueDictionary
167var arrayValues = new RouteValueDictionary()
183var propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17" });
192public RouteValueDictionary ConditionalAdd_ContainsKey_Array()
194var dictionary = _arrayValues;
215public RouteValueDictionary ConditionalAdd_TryAdd()
217var dictionary = _arrayValues;
227public RouteValueDictionary ForEachThreeItems_Array()
229var dictionary = _arrayValues;
238public RouteValueDictionary ForEachThreeItems_Properties()
240var dictionary = _propertyValues;
249public RouteValueDictionary GetThreeItems_Array()
251var dictionary = _arrayValues;
259public RouteValueDictionary GetThreeItems_Properties()
261var dictionary = _propertyValues;
269public RouteValueDictionary SetSingleItem()
271var dictionary = new RouteValueDictionary
279public RouteValueDictionary SetExistingItem()
281var dictionary = _arrayValues;
287public RouteValueDictionary SetThreeItems()
289var dictionary = new RouteValueDictionary
299public RouteValueDictionary TryGetValueThreeItems_Array()
301var dictionary = _arrayValues;
312public RouteValueDictionary TryGetValueThreeItems_Properties()
314var dictionary = _propertyValues;
Microsoft.AspNetCore.Http.Results (20)
Results.cs (5)
583public static IResult RedirectToRoute(string? routeName, RouteValueDictionary? routeValues, bool permanent = false, bool preserveMethod = false, string? fragment = null)
890public static IResult CreatedAtRoute(string? routeName, RouteValueDictionary? routeValues, object? value = null)
913public static IResult CreatedAtRoute<TValue>(string? routeName, RouteValueDictionary? routeValues, TValue? value = default)
954public static IResult AcceptedAtRoute(string? routeName, RouteValueDictionary? routeValues, object? value = null)
977public static IResult AcceptedAtRoute<TValue>(string? routeName, RouteValueDictionary? routeValues, TValue? value = default)
TypedResults.cs (5)
634public static RedirectToRouteHttpResult RedirectToRoute(string? routeName, RouteValueDictionary? routeValues, bool permanent = false, bool preserveMethod = false, string? fragment = null)
953public static CreatedAtRoute CreatedAtRoute(string? routeName, RouteValueDictionary? routeValues)
978public static CreatedAtRoute<TValue> CreatedAtRoute<TValue>(TValue? value, string? routeName, RouteValueDictionary? routeValues)
1043public static AcceptedAtRoute AcceptedAtRoute(string? routeName, RouteValueDictionary? routeValues)
1068public static AcceptedAtRoute<TValue> AcceptedAtRoute<TValue>(TValue? value, string? routeName, RouteValueDictionary? routeValues)
Microsoft.AspNetCore.Http.Results.Tests (17)
TestLinkGenerator.cs (6)
13public override string GetPathByAddress<TAddress>(HttpContext httpContext, TAddress address, RouteValueDictionary values, RouteValueDictionary ambientValues = null, PathString? pathBase = null, FragmentString fragment = default, LinkOptions options = null)
18public override string GetPathByAddress<TAddress>(TAddress address, RouteValueDictionary values, PathString pathBase = default, FragmentString fragment = default, LinkOptions options = null)
23public override string GetUriByAddress<TAddress>(HttpContext httpContext, TAddress address, RouteValueDictionary values, RouteValueDictionary ambientValues = null, string scheme = null, HostString? host = null, PathString? pathBase = null, FragmentString fragment = default, LinkOptions options = null)
26public override string GetUriByAddress<TAddress>(TAddress address, RouteValueDictionary values, string scheme, HostString host, PathString pathBase = default, FragmentString fragment = default, LinkOptions options = null)
Microsoft.AspNetCore.Http.Tests (1)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Mvc.Core (73)
Routing\DynamicRouteValueTransformer.cs (12)
20/// The route values returned from a <see cref="TransformAsync(HttpContext, RouteValueDictionary)"/> implementation
23/// <see cref="FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList{Endpoint})" /> as well as
32/// <item><description><see cref="TransformAsync(HttpContext, RouteValueDictionary)"/></description></item>
33/// <item><description><see cref="FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList{Endpoint})" /></description></item>
62public abstract ValueTask<RouteValueDictionary> TransformAsync(HttpContext httpContext, RouteValueDictionary values);
66/// <see cref="TransformAsync(HttpContext, RouteValueDictionary)" />.
69/// <param name="values">The route values returned from <see cref="TransformAsync(HttpContext, RouteValueDictionary)" />.</param>
72/// <see cref="TransformAsync(HttpContext, RouteValueDictionary)" />.
77/// Implementations of <see cref="FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList{Endpoint})" /> may further
82/// <see cref="FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList{Endpoint})" /> will not be called in the case
86public virtual ValueTask<IReadOnlyList<Endpoint>> FilterAsync(HttpContext httpContext, RouteValueDictionary values, IReadOnlyList<Endpoint> endpoints)
Microsoft.AspNetCore.Mvc.Core.Test (89)
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", });
ModelBinding\RouteValueProviderTests.cs (14)
16var values = new RouteValueDictionary(new Dictionary<string, object>
33var values = new RouteValueDictionary(new Dictionary<string, object>
51var values = new RouteValueDictionary(new Dictionary<string, object>
68var values = new RouteValueDictionary(new Dictionary<string, object>
87var values = new RouteValueDictionary(new Dictionary<string, object>
104var values = new RouteValueDictionary(new Dictionary<string, object>
121var values = new RouteValueDictionary(new Dictionary<string, object>
142var values = new RouteValueDictionary(new Dictionary<string, object>
163var values = new RouteValueDictionary(new Dictionary<string, object>
182var values = new RouteValueDictionary(new Dictionary<string, object>
200var values = new RouteValueDictionary(new Dictionary<string, object>
217var values = new RouteValueDictionary(new Dictionary<string, object>
234var values = new RouteValueDictionary();
255var values = new RouteValueDictionary();
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (24)
92private Func<HttpContext, RouteValueDictionary, object, ValueTask<RouteValueDictionary>> Transform { get; set; }
94private Func<HttpContext, RouteValueDictionary, object, IReadOnlyList<Endpoint>, ValueTask<IReadOnlyList<Endpoint>>> Filter { get; set; } = (_, __, ___, e) => new ValueTask<IReadOnlyList<Endpoint>>(e);
105var values = new RouteValueDictionary[] { null, };
135var values = new RouteValueDictionary[] { null, };
142return new ValueTask<RouteValueDictionary>(new RouteValueDictionary());
166var values = new RouteValueDictionary[] { null, };
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
447public Func<HttpContext, RouteValueDictionary, object, ValueTask<RouteValueDictionary>> Transform { get; set; }
449public Func<HttpContext, RouteValueDictionary, object, IReadOnlyList<Endpoint>, ValueTask<IReadOnlyList<Endpoint>>> Filter { get; set; }
451public override ValueTask<RouteValueDictionary> TransformAsync(HttpContext httpContext, RouteValueDictionary values)
456public override ValueTask<IReadOnlyList<Endpoint>> FilterAsync(HttpContext httpContext, RouteValueDictionary values, IReadOnlyList<Endpoint> endpoints)
Routing\UrlHelperExtensionsTest.cs (17)
41Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
89Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
121Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
153Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
185Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
235Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
284Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
327Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
375Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
418Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
453Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
480Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
524Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
587Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values).OrderBy(v => v.Key),
743Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
791Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
839Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
Microsoft.AspNetCore.Mvc.RazorPages (7)
Microsoft.AspNetCore.Mvc.RazorPages.Test (24)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (24)
111private Func<HttpContext, RouteValueDictionary, object, ValueTask<RouteValueDictionary>> Transform { get; set; }
113private Func<HttpContext, RouteValueDictionary, object, IReadOnlyList<Endpoint>, ValueTask<IReadOnlyList<Endpoint>>> Filter { get; set; } = (_, __, ___, e) => new ValueTask<IReadOnlyList<Endpoint>>(e);
122var values = new RouteValueDictionary[] { null, };
152var values = new RouteValueDictionary[] { null, };
159return new ValueTask<RouteValueDictionary>(new RouteValueDictionary());
183var values = new RouteValueDictionary[] { null, };
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
447public Func<HttpContext, RouteValueDictionary, object, ValueTask<RouteValueDictionary>> Transform { get; set; }
449public Func<HttpContext, RouteValueDictionary, object, IReadOnlyList<Endpoint>, ValueTask<IReadOnlyList<Endpoint>>> Filter { get; set; }
451public override ValueTask<IReadOnlyList<Endpoint>> FilterAsync(HttpContext httpContext, RouteValueDictionary values, IReadOnlyList<Endpoint> endpoints)
456public override ValueTask<RouteValueDictionary> TransformAsync(HttpContext httpContext, RouteValueDictionary values)
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (1)
Microsoft.AspNetCore.Mvc.TagHelpers (4)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (15)
Microsoft.AspNetCore.Mvc.Test (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (14)
Microsoft.AspNetCore.Routing (176)
DefaultLinkGenerator.cs (17)
72RouteValueDictionary values,
73RouteValueDictionary? ambientValues = default,
98RouteValueDictionary values,
122RouteValueDictionary values,
123RouteValueDictionary? ambientValues = default,
151RouteValueDictionary values,
202RouteValueDictionary values,
203RouteValueDictionary? ambientValues,
236RouteValueDictionary values,
237RouteValueDictionary? ambientValues,
283RouteValueDictionary values,
284RouteValueDictionary? ambientValues,
317public static RouteValueDictionary? GetAmbientValues(HttpContext? httpContext)
362public static void TemplateFailedRequiredValues(ILogger logger, RouteEndpoint endpoint, RouteValueDictionary? ambientValues, RouteValueDictionary values)
379public static void TemplateFailedConstraint(ILogger logger, RouteEndpoint endpoint, string? parameterName, IRouteConstraint? constraint, RouteValueDictionary values)
395public static void TemplateFailedExpansion(ILogger logger, RouteEndpoint endpoint, RouteValueDictionary values)
Patterns\RoutePatternFactory.cs (41)
59/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
64/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
85/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
90/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
95public static RoutePattern Parse([StringSyntax("Route")] string pattern, RouteValueDictionary? defaults, RouteValueDictionary? parameterPolicies)
110/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
115/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
139/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
144/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
152public static RoutePattern Parse([StringSyntax("Route")] string pattern, RouteValueDictionary? defaults, RouteValueDictionary? parameterPolicies, RouteValueDictionary? requiredValues)
192/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
197/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
220/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
225/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
232RouteValueDictionary? defaults,
233RouteValueDictionary? parameterPolicies,
248/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
253/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
278/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
283/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
291RouteValueDictionary? defaults,
292RouteValueDictionary? parameterPolicies,
331/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
336/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
359/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
364/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
371RouteValueDictionary? defaults,
372RouteValueDictionary? parameterPolicies,
387/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
392/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
417/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
422/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/>
430RouteValueDictionary? defaults,
431RouteValueDictionary? parameterPolicies,
442RouteValueDictionary? defaults,
444RouteValueDictionary? requiredValues,
648private static Dictionary<string, List<RoutePatternParameterPolicyReference>>? CreateRoutePatternPolicyReferences(RouteValueDictionary? parameterPolicies)
1152private static RouteValueDictionary? Wrap(object? values)
Microsoft.AspNetCore.Routing.Abstractions (33)
Microsoft.AspNetCore.Routing.Microbenchmarks (13)
Microsoft.AspNetCore.Routing.Tests (237)
Template\TemplateBinderTests.cs (42)
14public static TheoryData<string, RouteValueDictionary, RouteValueDictionary, string> EmptyAndNullDefaultValues =>
107RouteValueDictionary defaults,
108RouteValueDictionary values,
177public static TheoryData<string, RouteValueDictionary, RouteValueDictionary, RouteValueDictionary, string> OptionalParamValues =>
255RouteValueDictionary defaults,
256RouteValueDictionary ambientValues,
257RouteValueDictionary values,
530var ambientValues = new RouteValueDictionary();
538var values = new RouteValueDictionary();
554var ambientValues = new RouteValueDictionary();
561var values = new RouteValueDictionary();
576var values = new RouteValueDictionary();
594var values = new RouteValueDictionary(new { controller = "products", action = "showcategory", id = 123, maxPrice = 100 });
714var ambientValues = new RouteValueDictionary();
715var routeValues = new RouteValueDictionary(new { controller = "Test", action = "Index" });
1132RouteValueDictionary defaults,
1133RouteValueDictionary ambientValues,
1134RouteValueDictionary 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" });
1352var defaults = new RouteValueDictionary();
1353var ambientValues = new RouteValueDictionary(new { page = "/LGAnotherPage", id = "17" });
1354var explicitValues = new RouteValueDictionary(new { controller = "LG2", action = "SomeAction" });
1386var defaults = new RouteValueDictionary();
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" });
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.StaticAssets (1)
Mvc.RoutingWebSite (26)
RoutingWebSite (1)