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"));
        }
Esempio n. 2
0
        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"));
        }