Beispiel #1
0
        public void CreateNormalClient_Works()
        {
            // Arrange
            var factory = new ProxyHttpClientFactory();

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

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

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

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