public async Task SHOULD_post_content_to_correct_endpoint() { //Arrange MockHttpClientFactory.Where_CreateClient_returns(new HttpClient(MockMessageHandler.Build().Object)); //Act await Sut.PostAsync("http://baseaddress.com/testroute", new TestDto { TestDtoProperty = "hello world" }, CancellationToken.None); //Assert MockMessageHandler.VerifyUri("http://baseaddress.com/testroute"); MockMessageHandler.VerifyContent(x => x.Contains("hello world")); }