public void CreateRequest_Should_Set_Uri_Correctly() { var url = "https://api.noopschallenge.com"; _provider.CreateRequest(HttpMethod.Get, url).RequestUri.OriginalString.Should().Be(url); }
public void CreateRequest_Should_Set_HttpMethod_Correctly() { var url = "https://google.com"; _provider.CreateRequest <object>(HttpMethod.Get, url).Method.Should().Be(HttpMethod.Get); _provider.CreateRequest(HttpMethod.Put, url, content: 123).Method.Should().Be(HttpMethod.Put); _provider.CreateRequest(HttpMethod.Post, url, content: 123).Method.Should().Be(HttpMethod.Post); }