14 references to AllocatePort
Aspire.Hosting (1)
Aspire.Hosting.Tests (13)
Dcp\ProxylessEndpointPortAllocatorTests.cs (13)
21Assert.Equal(10002, allocator.AllocatePort(CreateEndpoint("a")));
22Assert.Equal(10003, allocator.AllocatePort(CreateEndpoint("b")));
23Assert.Equal(10004, allocator.AllocatePort(CreateEndpoint("c")));
36Assert.Equal(10002, allocator.AllocatePort(CreateEndpoint("a")));
37Assert.Equal(10003, allocator.AllocatePort(CreateEndpoint("b")));
54allocator.AllocatePort(CreateEndpoint("a")),
55allocator.AllocatePort(CreateEndpoint("b")),
56allocator.AllocatePort(CreateEndpoint("c")),
57allocator.AllocatePort(CreateEndpoint("d"))
63allocator.AllocatePort(CreateEndpoint("e"));
78Assert.Equal(10000, allocator.AllocatePort(endpoint));
79Assert.Equal(10000, allocator.AllocatePort(endpoint));
80Assert.Equal(10001, allocator.AllocatePort(CreateEndpoint("other")));