Esempio n. 1
0
        public void Can_download_route_with_dot_seperator_and_extension_with_jsonserviceclient()
        {
            var client  = new JsonServiceClient(Config.AbsoluteBaseUri);
            var request = new GetPngPic {
                Id   = "1",
                Size = "100x100",
            };

            Assert.That(request.ToGetUrl(), Is.EqualTo("/pics/100x100/1.png"));

            var response = client.Get <GetPngPic>(request);

            Assert.That(response.Size, Is.EqualTo("100x100"));
            Assert.That(response.Id, Is.EqualTo("1"));
        }
Esempio n. 2
0
 public object Any(GetPngPic request)
 {
     return(request);
 }
Esempio n. 3
0
 public object Any(GetPngPic request) => request;