public void IgnoreIgnoreRoutes() { var routeCollection = new RouteCollection(); routeCollection.Ignore("IgnoreMe"); var filter = new IgnoreUnsupportedRoutesFilter(); Assert.IsFalse(filter.AllowRoute(routeCollection[0])); }
public void IgnoreWebFormsRoutes2() { var route = new Route("Foo", new PageRouteHandler("~/Bar.aspx")); var filter = new IgnoreUnsupportedRoutesFilter(); Assert.IsFalse(filter.AllowRoute(route)); }
public void AllowCustomRouteClasses() { var route = new MostAwesomeRouteEver(); var filter = new IgnoreUnsupportedRoutesFilter(); Assert.IsTrue(filter.AllowRoute(route)); }
public void IgnoreWebFormsRoutes() { var routeCollection = new RouteCollection(); routeCollection.MapPageRoute("Hello", "Foo", "~/Bar.aspx"); var filter = new IgnoreUnsupportedRoutesFilter(); Assert.IsFalse(filter.AllowRoute(routeCollection[0])); }
public void IgnoreIgnoreRoutes() { var routeCollection = new RouteCollection(); routeCollection.Ignore("IgnoreMe"); var filter = new IgnoreUnsupportedRoutesFilter(); Assert.IsFalse(filter.AllowRoute(routeCollection[0])); }
public void IgnoreWebFormsRoutes() { var routeCollection = new RouteCollection(); routeCollection.MapPageRoute("Hello", "Foo", "~/Bar.aspx"); var filter = new IgnoreUnsupportedRoutesFilter(); Assert.IsFalse(filter.AllowRoute(routeCollection[0])); }
public void IgnoreWebApiRoute() { var routeCollection = new RouteCollection(); routeCollection.MapHttpRoute( name: "Hello", routeTemplate: "hello/world/{id}" ); var filter = new IgnoreUnsupportedRoutesFilter(); Assert.IsFalse(filter.AllowRoute(routeCollection[0])); }
public void AllowMvcRoute() { var routeCollection = new RouteCollection(); routeCollection.MapRoute( name: "hello", url: "hello/world", defaults: new {controller = "HelloWorld", action = "Hello"} ); var filter = new IgnoreUnsupportedRoutesFilter(); Assert.IsTrue(filter.AllowRoute(routeCollection[0])); }
public void IgnoreWebApiRoute() { var routeCollection = new RouteCollection(); routeCollection.MapHttpRoute( name: "Hello", routeTemplate: "hello/world/{id}" ); var filter = new IgnoreUnsupportedRoutesFilter(); Assert.IsFalse(filter.AllowRoute(routeCollection[0])); }
public void AllowMvcRoute() { var routeCollection = new RouteCollection(); routeCollection.MapRoute( name: "hello", url: "hello/world", defaults: new { controller = "HelloWorld", action = "Hello" } ); var filter = new IgnoreUnsupportedRoutesFilter(); Assert.IsTrue(filter.AllowRoute(routeCollection[0])); }
public void IgnoreWebFormsRoutes2() { var route = new Route("Foo", new PageRouteHandler("~/Bar.aspx")); var filter = new IgnoreUnsupportedRoutesFilter(); Assert.IsFalse(filter.AllowRoute(route)); }
public void AllowCustomRouteClasses() { var route = new MostAwesomeRouteEver(); var filter = new IgnoreUnsupportedRoutesFilter(); Assert.IsTrue(filter.AllowRoute(route)); }