public void Does_SendDefault_as_POST()
        {
            var client  = Config.CreateClient();
            var request = new SendDefault {
                Id = 1
            };
            var response = client.Send(request);

            Assert.That(response.Id, Is.EqualTo(1));
            Assert.That(response.RequestMethod, Is.EqualTo(HttpMethods.Post));
            Assert.That(response.PathInfo, Is.EqualTo("/json/reply/SendDefault"));
        }
Пример #2
0
        public async Task Does_SendDefault_as_POST()
        {
            var client = Config.CreateClient();

            var request = new SendDefault {
                Id = 1
            };

            var response = await client.SendAsync <SendVerbResponse>(request).ConfigureAwait(false);

            Assert.That(response.Id, Is.EqualTo(1));
            Assert.That(response.RequestMethod, Is.EqualTo(HttpMethods.Post));
            Assert.That(response.PathInfo, Is.EqualTo("/json/reply/SendDefault"));
        }