コード例 #1
0
        public void CreateHttpContent_ReturnsValueWhenContentHasValue()
        {
            HttpClient     httpClient     = new HttpClient();
            HttpClientBase httpClientBase = new HttpClientBase(httpClient, loggerMock.Object);

            var result = httpClientBase.CreateHttpContent("value");

            result.Should().NotBeNull();
        }
コード例 #2
0
        public void CreateHttpContent_ReturnsNullWhenContentIsNull()
        {
            HttpClient     httpClient     = new HttpClient();
            HttpClientBase httpClientBase = new HttpClientBase(httpClient, loggerMock.Object);

            var result = httpClientBase.CreateHttpContent(null);

            result.Should().BeNull();
        }