Beispiel #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"));
        }
Beispiel #2
0
 public object Any(CustomRoute request)
 {
     return(request);
 }
 public object Any(CustomRoute request) => request;