public async Task PutAsync_TestRequestAndResponse() { var messageHandler = FakeResponseHandler.Create(HttpStatusCode.OK, endpoint, payload); var client = new RestfulClient(endpoint, messageHandler); var testObject = await client.PutAsync <TestObject>(endpoint, payload); Assert.IsNotNull(testObject); Assert.AreEqual(1, messageHandler.Requests.Count); var request = messageHandler.Requests.FirstOrDefault(); Assert.AreEqual(HttpMethod.Put, request.Method); Assert.AreEqual(new Uri(endpoint), request.RequestUri); Assert.IsNotNull(request.Content); }