public void Does_SendGet_as_GET() { var client = Config.CreateClient(); var request = new SendGet { Id = 1 }; var response = client.Send(request); Assert.That(response.Id, Is.EqualTo(1)); Assert.That(response.RequestMethod, Is.EqualTo(HttpMethods.Get)); Assert.That(response.PathInfo, Is.EqualTo("/json/reply/SendGet")); }
public async Task Does_SendGet_as_GET() { var client = Config.CreateClient(); var request = new SendGet { Id = 1 }; var response = await client.SendAsync(request).ConfigureAwait(false); Assert.That(response.Id, Is.EqualTo(1)); Assert.That(response.RequestMethod, Is.EqualTo(HttpMethods.Get)); Assert.That(response.PathInfo, Is.EqualTo("/json/reply/SendGet")); }