public async Task CreateServerWithSameUrlButDifferentPortShouldNotBeSame() { var settings1 = new FluentProxySettings { InternalPort = TcpUtils.FindFreeTcpPort(), ExternalUrl = new Uri("https://api.exmo.com"), }; var settings2 = new FluentProxySettings { InternalPort = TcpUtils.FindFreeTcpPort(), ExternalUrl = new Uri("https://api.exmo.com"), }; settings1.InternalPort.Should().NotBe(settings2.InternalPort); var fluentProxyServer1 = await FluentProxyFactory.CreateServer(settings1); var fluentProxyServer2 = await FluentProxyFactory.CreateServer(settings2); fluentProxyServer1.Should().NotBeSameAs(fluentProxyServer2); }