public void Apply_filter_to_the_current_request()
        {
            var routes = RouteTable.Routes;
            var filter = new NullFilter();
            NavigationRoutes.NavigationRouteFilters.Filters.Add(filter);
            routes.MapNavigationRoute<HomeController>("Home", c => c.Index());

            NavigationRoutes.NavigationViewExtensions.Navigation(null);

            filter._wasCalled.ShouldBeTrue();
        }
Example #2
0
        public void Apply_filter_to_the_current_request()
        {
            var routes = RouteTable.Routes;
            var filter = new NullFilter();

            NavigationRoutes.NavigationRoutes.Filters.Add(filter);
            routes.MapNavigationRoute <HomeController>("Home", c => c.Index());

            NavigationRoutes.NavigationViewExtensions.Navigation(null);

            filter._wasCalled.ShouldBeTrue();
        }