예제 #1
0
        public void Does_encode_route_with_backslash()
        {
            var request = new CustomRoute {
                Data = "D\\SN"
            };

            Assert.That(request.ToUrl().UrlDecode(), Is.EqualTo("/custom/D\\SN"));

            //HttpListener and ASP.NET hosts doesn't support `\` or %5C in urls
            //var client = new JsonServiceClient(Config.AbsoluteBaseUri);
            //var response = client.Get(request);
            //Assert.That(response.Data, Is.EqualTo("D\\SN"));
        }
예제 #2
0
 public object Any(CustomRoute request)
 {
     return(request);
 }
예제 #3
0
 public object Any(CustomRoute request) => request;