public void CreateHttpContent_ReturnsValueWhenContentHasValue() { HttpClient httpClient = new HttpClient(); HttpClientBase httpClientBase = new HttpClientBase(httpClient, loggerMock.Object); var result = httpClientBase.CreateHttpContent("value"); result.Should().NotBeNull(); }
public void CreateHttpContent_ReturnsNullWhenContentIsNull() { HttpClient httpClient = new HttpClient(); HttpClientBase httpClientBase = new HttpClientBase(httpClient, loggerMock.Object); var result = httpClientBase.CreateHttpContent(null); result.Should().BeNull(); }