22 references to CreateEndpoint
Microsoft.AspNetCore.Routing.Tests (22)
Matching\HostMatcherPolicyTest.cs (22)
15var endpoints = new[] { CreateEndpoint("/", null), }; 32CreateEndpoint("/", new HostAttribute(Array.Empty<string>())), 50CreateEndpoint("/", new HostAttribute(Array.Empty<string>())), 51CreateEndpoint("/", new HostAttribute(new[] { "localhost", })), 69CreateEndpoint("/", new HostAttribute(Array.Empty<string>())), 70CreateEndpoint("/", new HostAttribute(new[] { "localhost", }), new DynamicEndpointMetadata()), 92var endpoints = new[] { CreateEndpoint("/", new HostAttribute(new[] { host })), }; 107var endpoints = new[] { CreateEndpoint("/", null, new DynamicEndpointMetadata()), }; 124CreateEndpoint("/", new HostAttribute(Array.Empty<string>()), new DynamicEndpointMetadata()), 142CreateEndpoint("/", new HostAttribute(Array.Empty<string>())), 143CreateEndpoint("/", new HostAttribute(new[] { "localhost", }), new DynamicEndpointMetadata()), 161CreateEndpoint("/", new HostAttribute(Array.Empty<string>())), 162CreateEndpoint("/", new HostAttribute(new[] { "localhost", })), 184var endpoints = new[] { CreateEndpoint("/", new HostAttribute(new[] { host }), new DynamicEndpointMetadata()), }; 201CreateEndpoint("/", new HostAttribute(new[] { "*:5000", "*:5001", })), 202CreateEndpoint("/", new HostAttribute(Array.Empty<string>())), 203CreateEndpoint("/", hostMetadata: null), 204CreateEndpoint("/", new HostAttribute("*.contoso.com:*")), 205CreateEndpoint("/", new HostAttribute("*.sub.contoso.com:*")), 206CreateEndpoint("/", new HostAttribute("www.contoso.com:*")), 207CreateEndpoint("/", new HostAttribute("www.contoso.com:5000")), 208CreateEndpoint("/", new HostAttribute("*:*")),