示例#1
0
        public void CreateUpgradableClient_Works()
        {
            // Arrange
            var factory = new ProxyHttpClientFactory();

            // Act
            var actual1 = factory.CreateUpgradableClient();
            var actual2 = factory.CreateUpgradableClient();

            // Assert
            Assert.NotNull(actual1);
            Assert.NotNull(actual2);
            Assert.NotSame(actual2, actual1);
        }
示例#2
0
        public void CreateUpgradableClient_Works()
        {
            // Arrange
            var factory = new ProxyHttpClientFactory();

            // Act
            var actual1 = factory.CreateUpgradableClient();
            var actual2 = factory.CreateUpgradableClient();

            // Assert
            actual1.Should().NotBeNull();
            actual2.Should().NotBeNull();
            actual1.Should().NotBeSameAs(actual2);
        }