29 references to CreateEndpoint
Microsoft.AspNetCore.Routing.Tests (29)
Matching\HttpMethodMatcherPolicyTest.cs (29)
16var endpoints = new[] { CreateEndpoint("/", null), };
33CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
51CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
52CreateEndpoint("/", new HttpMethodMetadata(new[] { "GET", })),
70CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
71CreateEndpoint("/", new HttpMethodMetadata(new[] { "GET", }), new DynamicEndpointMetadata()),
87var endpoints = new[] { CreateEndpoint("/", null, new DynamicEndpointMetadata()), };
104CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>()), new DynamicEndpointMetadata()),
122CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>()), new DynamicEndpointMetadata()),
123CreateEndpoint("/", new HttpMethodMetadata(new[] { "GET", })),
141CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
142CreateEndpoint("/", new HttpMethodMetadata(new[] { "GET", })),
164endpoints[i] = CreateEndpoint("/", new HttpMethodMetadata(new[] { "DEL" }));
184CreateEndpoint("/", new HttpMethodMetadata(new[] { "GET", })),
185CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
186CreateEndpoint("/", new HttpMethodMetadata(new[] { "GET", "PUT", "POST" })),
187CreateEndpoint("/", new HttpMethodMetadata(new[] { "PUT", "POST" })),
188CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
229CreateEndpoint("/", new HttpMethodMetadata(new[] { "GET", })),
230CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
231CreateEndpoint("/", new HttpMethodMetadata(new[] { "GET", "PUT", "POST" }, acceptCorsPreflight: true)),
232CreateEndpoint("/", new HttpMethodMetadata(new[] { "PUT", "POST" })),
233CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>(), acceptCorsPreflight: true)),
294CreateEndpoint("/", new HttpMethodMetadata(new[] { "GET", })),
295CreateEndpoint("/", new HttpMethodMetadata(new[] { "GET", "PUT", "POST" })),
296CreateEndpoint("/", new HttpMethodMetadata(new[] { "PUT", "POST" })),
338CreateEndpoint("/", new HttpMethodMetadata(new[] { "GET", })),
339CreateEndpoint("/", new HttpMethodMetadata(new[] { "GET", "PUT", "POST" }, acceptCorsPreflight: true)),
340CreateEndpoint("/", new HttpMethodMetadata(new[] { "PUT", "POST" })),