28 references to CreateEndpoint
Aspire.Hosting.Tests (28)
Dcp\ProxylessEndpointPortAllocatorTests.cs (28)
23Assert.Equal(10002, allocator.AllocatePort(CreateEndpoint("a"))); 24Assert.Equal(10003, allocator.AllocatePort(CreateEndpoint("b"))); 25Assert.Equal(10004, allocator.AllocatePort(CreateEndpoint("c"))); 38Assert.Equal(10002, allocator.AllocatePort(CreateEndpoint("a"))); 39Assert.Equal(10003, allocator.AllocatePort(CreateEndpoint("b"))); 56allocator.AllocatePort(CreateEndpoint("a")), 57allocator.AllocatePort(CreateEndpoint("b")), 58allocator.AllocatePort(CreateEndpoint("c")), 59allocator.AllocatePort(CreateEndpoint("d")) 65allocator.AllocatePort(CreateEndpoint("e")); 78var endpoint = CreateEndpoint("endpoint"); 82Assert.Equal(10001, allocator.AllocatePort(CreateEndpoint("other"))); 114Assert.Equal(port, firstApplicationAllocator.AllocatePort(CreateEndpoint("dashboard"))); 117Assert.Throws<InvalidOperationException>(() => secondApplicationAllocator.AllocatePort(CreateEndpoint("webapp"))); 122Assert.Equal(port, laterApplicationAllocator.AllocatePort(CreateEndpoint("webapp"))); 144Assert.Equal(10000, first.AllocatePort(CreateEndpoint("a"))); 146Assert.Equal(10002, second.AllocatePort(CreateEndpoint("a"))); 157Assert.Equal(10000, third.AllocatePort(CreateEndpoint("a"))); 158Assert.Equal(10001, third.AllocatePort(CreateEndpoint("b"))); 159Assert.Equal(10003, third.AllocatePort(CreateEndpoint("c"))); 180Assert.Equal(10001, first.AllocatePort(CreateEndpoint("a"))); 191Assert.Equal(10001, second.AllocatePort(CreateEndpoint("a"))); 207Assert.Equal(10001, third.AllocatePort(CreateEndpoint("a"))); 213Assert.Throws<InvalidOperationException>(() => third.AllocatePort(CreateEndpoint("b"))); 217Assert.Equal(10000, third.AllocatePort(CreateEndpoint("b"))); 230Assert.Equal(10001, allocator.AllocatePort(CreateEndpoint("a"))); 246Assert.Equal(10001, prober.AllocatePort(CreateEndpoint("a"))); 264Assert.Throws<InvalidTimeZoneException>(() => allocator.AllocatePort(CreateEndpoint("a")));