27 references to CreateEndpoint
Microsoft.AspNetCore.Routing.Tests (27)
Matching\HttpMethodMatcherPolicyIntegrationTestBase.cs (27)
21var endpoint = CreateEndpoint("/hello", httpMethods: new string[] { "GET", }); 37var endpoint = CreateEndpoint("/hello", httpMethods: new string[] { "GET", }, acceptCorsPreflight: true); 53var endpoint = CreateEndpoint("/hello", httpMethods: new string[] { "GET", }, acceptCorsPreflight: true); 69var endpoint = CreateEndpoint("/hello", httpMethods: new string[] { "GET", }, acceptCorsPreflight: false); 88var endpoint = CreateEndpoint("/hello", httpMethods: new string[] { endpointMethod, }); 106var endpoint = CreateEndpoint("/hello", httpMethods: new string[] { endpointMethod, }, acceptCorsPreflight: true); 122var endpoint = CreateEndpoint("/hello"); 138var endpoint = CreateEndpoint("/hello", acceptCorsPreflight: true); 154var endpoint = CreateEndpoint("/hello", acceptCorsPreflight: false); 170var endpoint = CreateEndpoint("/hello", httpMethods: new string[] { }); 186var endpoint1 = CreateEndpoint("/hello", httpMethods: new string[] { "GET", "PUT" }); 187var endpoint2 = CreateEndpoint("/hello", httpMethods: new string[] { "DELETE" }); 211var endpoint1 = CreateEndpoint("/hello", httpMethods: new string[] { "GET", "PUT" }, acceptCorsPreflight: true); 212var endpoint2 = CreateEndpoint("/hello", httpMethods: new string[] { "DELETE" }); 228var endpoint1 = CreateEndpoint("/{x:int}", httpMethods: new string[] { }); 229var endpoint2 = CreateEndpoint("/{hello:regex(hello)}", httpMethods: new string[] { "DELETE" }); 245var endpoint1 = CreateEndpoint("/hello", httpMethods: new string[] { "GET", }); 246var endpoint2 = CreateEndpoint("/bar"); 262var endpoint1 = CreateEndpoint("/hello", httpMethods: new string[] { "GET", }); 263var endpoint2 = CreateEndpoint("/bar", httpMethods: new string[] { }); 279var endpoint1 = CreateEndpoint("/{x}", httpMethods: new string[] { "GET", }); 280var endpoint2 = CreateEndpoint("/{x}", httpMethods: new string[] { }); 296var endpoint1 = CreateEndpoint("/hello", httpMethods: new string[] { "GET", "PUT" }); 297var endpoint2 = CreateEndpoint("/hello", httpMethods: new string[] { "DELETE" }); 326var endpoint1 = CreateEndpoint("/hello", httpMethods: new string[] { "GET", }); 327var endpoint2 = CreateEndpoint("/hello", httpMethods: new string[] { "GOT", }); 411var endpoint = CreateEndpoint(template);