174 references to CreateRouteEndpoint
Microsoft.AspNetCore.Routing.Tests (174)
DefaultLinkGeneratorProcessTemplateTest.cs (54)
19
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{p1}/{p2=a b}/{p3=foo}");
43
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{*path}");
75
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{**path}");
98
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{**path}");
121
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}");
144
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}");
167
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}");
190
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}");
213
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}");
236
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}");
259
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}");
288
var endpoint = EndpointFactory.
CreateRouteEndpoint
("Foo/{bar=BAR}/{id?}");
317
var endpoint = EndpointFactory.
CreateRouteEndpoint
("Foo/{bar=MyBar}/{id?}", policies: new { bar = new SlugifyParameterTransformer(), });
344
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}");
377
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}");
411
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}");
441
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}");
476
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}");
509
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}");
542
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}");
580
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}");
618
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}");
648
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
672
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
698
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
722
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
759
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
790
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
824
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
856
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
888
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
922
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
948
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
974
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
1000
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
1026
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
1052
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
1080
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
1105
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
1131
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{name?}");
1154
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{name?}");
1177
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
1202
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
1227
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{name}");
1250
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
1274
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/.{name?}");
1296
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{name?}");
1319
var endpoint = EndpointFactory.
CreateRouteEndpoint
("a/{b=15}/{c?}/{d?}");
1342
var endpoint = EndpointFactory.
CreateRouteEndpoint
("a/{b=15}/{c?}");
1365
var endpoint = EndpointFactory.
CreateRouteEndpoint
("a/{b=15}/{c?}/{d?}");
1466
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
1494
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
1522
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
1630
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
DefaultLinkGeneratorTest.cs (54)
21
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
36
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
51
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
66
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
81
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
82
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
97
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
98
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
113
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
114
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
133
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
134
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
153
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
154
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
172
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller:slugify}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
173
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller:slugify}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
198
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller:slugify}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
199
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller:slugify}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
225
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
226
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
245
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
246
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
266
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
267
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
291
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
292
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
311
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller:upper-case}/{name}", requiredValues: new { controller = "Home", name = "Test" });
334
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
361
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
362
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
385
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
386
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
408
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
409
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
433
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
434
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
457
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
458
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
481
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
482
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
504
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
505
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new IntMetadata(1), });
533
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", policies: new { controller = constraint }, metadata: new object[] { new IntMetadata(1), });
567
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
585
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
591
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
608
var endpointControllerAction = EndpointFactory.
CreateRouteEndpoint
(
613
var endpointController = EndpointFactory.
CreateRouteEndpoint
(
618
var endpointEmpty = EndpointFactory.
CreateRouteEndpoint
(
625
var endpointControllerActionParameter = EndpointFactory.
CreateRouteEndpoint
(
661
var homeIndex = EndpointFactory.
CreateRouteEndpoint
(
665
var homeLogin = EndpointFactory.
CreateRouteEndpoint
(
700
var homeIndex = EndpointFactory.
CreateRouteEndpoint
(
704
var homeLogin = EndpointFactory.
CreateRouteEndpoint
(
DefaultLinkParserTest.cs (12)
23
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", displayName: "Test1", metadata: new object[] { new IntMetadata(1), });
44
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", displayName: "Test1", metadata: new object[] { new IntMetadata(1), });
45
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id2}", displayName: "Test2", metadata: new object[] { new IntMetadata(0), });
67
var endpoint0 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}", displayName: "Test1", metadata: new object[] { new IntMetadata(0), });
68
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", displayName: "Test2", metadata: new object[] { new IntMetadata(0), });
69
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id2}", displayName: "Test3", metadata: new object[] { new IntMetadata(0), });
91
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller=Home}/{action=Index}/{id?}", metadata: new object[] { new IntMetadata(0), });
106
var endpoint0 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id:int}", metadata: new object[] { new IntMetadata(0), });
107
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id2:alpha}", metadata: new object[] { new IntMetadata(0), });
122
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
141
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
147
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new IntMetadata(1), });
EndpointNameAddressSchemeTest.cs (15)
15
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
(
19
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
(
38
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
55
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
71
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
(
84
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
(
109
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
124
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
139
var endpoint = EndpointFactory.
CreateRouteEndpoint
(
156
EndpointFactory.
CreateRouteEndpoint
("/a", displayName: "a", metadata: new object[] { new EndpointNameMetadata("name1"), }),
157
EndpointFactory.
CreateRouteEndpoint
("/b", displayName: "b", metadata: new object[] { new EndpointNameMetadata("name1"), }),
158
EndpointFactory.
CreateRouteEndpoint
("/c", displayName: "c", metadata: new object[] { new EndpointNameMetadata("name1"), }),
161
EndpointFactory.
CreateRouteEndpoint
("/d", displayName: "d", metadata: new object[] { new EndpointNameMetadata("NAME1"), }),
163
EndpointFactory.
CreateRouteEndpoint
("/e", displayName: "e", metadata: new object[] { new EndpointNameMetadata("name2"), }),
164
EndpointFactory.
CreateRouteEndpoint
("/f", displayName: "f", metadata: new object[] { new EndpointNameMetadata("name2"), }),
LinkGeneratorEndpointNameExtensionsTest.cs (10)
21
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("some-endpoint/{p}", metadata: new[] { new EndpointNameMetadata("name1"), });
22
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("some#-other-endpoint/{p}", metadata: new[] { new EndpointNameMetadata("name2"), });
48
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("some-endpoint/{p}", metadata: new[] { new EndpointNameMetadata("name1"), });
49
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("some#-other-endpoint/{p}", metadata: new[] { new EndpointNameMetadata("name2"), });
71
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("some-endpoint/{p}", metadata: new[] { new EndpointNameMetadata("name1"), });
72
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("some#-other-endpoint/{p}", metadata: new[] { new EndpointNameMetadata("name2"), });
97
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("some-endpoint/{p}", metadata: new[] { new EndpointNameMetadata("name1"), });
98
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("some#-other-endpoint/{p}", metadata: new[] { new EndpointNameMetadata("name2"), });
122
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("some-endpoint/{p}", metadata: new[] { new EndpointNameMetadata("name1"), });
123
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("some#-other-endpoint/{p}", metadata: new[] { new EndpointNameMetadata("name2"), });
LinkGeneratorRouteValuesAddressExtensionsTest.cs (12)
21
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
(
25
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
(
52
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
(
56
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
(
79
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
(
83
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
(
109
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
(
113
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
(
138
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
(
142
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
(
170
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
(
174
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
(
LinkParserEndpointNameExtensionsTest.cs (4)
14
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id?}", metadata: new object[] { new EndpointNameMetadata("Test2"), });
29
var endpoint1 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new EndpointNameMetadata("Test2"), });
30
var endpoint2 = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id2}", metadata: new object[] { new EndpointNameMetadata("Test"), });
45
var endpoint = EndpointFactory.
CreateRouteEndpoint
("{controller}/{action}/{id}", metadata: new object[] { new EndpointNameMetadata("Test"), });
Matching\DfaMatcherBuilderTest.cs (1)
3566
return EndpointFactory.
CreateRouteEndpoint
(template, defaults, constraints, requiredValues, order: order, metadata: metadata);
Matching\DfaMatcherConformanceTest.cs (2)
35
EndpointFactory.
CreateRouteEndpoint
(
40
EndpointFactory.
CreateRouteEndpoint
(
Matching\DfaMatcherTest.cs (1)
20
return EndpointFactory.
CreateRouteEndpoint
(template, defaults, policies, requiredValues, order, displayName: template);
Matching\FullFeaturedMatcherConformanceTest.cs (4)
447
EndpointFactory.
CreateRouteEndpoint
(
452
EndpointFactory.
CreateRouteEndpoint
(
477
EndpointFactory.
CreateRouteEndpoint
(
483
EndpointFactory.
CreateRouteEndpoint
(
Matching\RouteMatcherConformanceTest.cs (2)
19
EndpointFactory.
CreateRouteEndpoint
(
24
EndpointFactory.
CreateRouteEndpoint
(
Matching\TreeRouterMatcherConformanceTest.cs (2)
33
EndpointFactory.
CreateRouteEndpoint
(
38
EndpointFactory.
CreateRouteEndpoint
(
RouteValuesAddressSchemeTest.cs (1)
403
var endpoint = EndpointFactory.
CreateRouteEndpoint
(