예제 #1
0
        public void Can_POST_RoutelessReqstar_PrettyRestApi(IRestClient client)
        {
            var request = new RoutelessReqstar {
                Id        = 1,
                FirstName = "Foo",
                LastName  = "Bar",
            };

            var response = client.Post(request);

            var format = ((ServiceClientBase)client).Format;

            Assert.That(request.ToUrl("POST", format), Is.EqualTo(
                            "/{0}/reply/RoutelessReqstar".Fmt(format)));
            Assert.That(response.Id, Is.EqualTo(request.Id));
            Assert.That(response.FirstName, Is.EqualTo(request.FirstName));
            Assert.That(response.LastName, Is.EqualTo(request.LastName));
        }
예제 #2
0
 public RoutelessReqstar Any(RoutelessReqstar request)
 {
     return(request);
 }
예제 #3
0
 public object Any(RoutelessReqstar request)
 {
     return(request);
 }