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