public void InBoundUrl_WithGetMethod_IsRouted()
 {
     Expression<Func<NavigationController, ActionResult>> action =
         controller => controller.HorizontalTabs();
     var url = new NavigationRouter.HorizontalTabsRoute().Url.ToAppRelativeUrl();
     url.WithMethod(HttpVerbs.Get).ShouldMapTo(action);
 }
 public void OutBoundUrl_IsRouted()
 {
     Expression<Func<NavigationController, ActionResult>> action =
         controller => controller.HorizontalTabs();
     var url = new NavigationRouter.HorizontalTabsRoute().Url.ToAppRelativeUrl();
     OutBoundRoute.Of(action).InArea(Area).AppRelativeUrl().ShouldEqual(url);
 }
            public void InBoundUrl_WithGetMethod_IsRouted()
            {
                Expression <Func <NavigationController, ActionResult> > action =
                    controller => controller.HorizontalTabs();
                var url = new NavigationRouter.HorizontalTabsRoute().Url.ToAppRelativeUrl();

                url.WithMethod(HttpVerbs.Get).ShouldMapTo(action);
            }
            public void OutBoundUrl_IsRouted()
            {
                Expression <Func <NavigationController, ActionResult> > action =
                    controller => controller.HorizontalTabs();
                var url = new NavigationRouter.HorizontalTabsRoute().Url.ToAppRelativeUrl();

                OutBoundRoute.Of(action).InArea(Area).AppRelativeUrl().ShouldEqual(url);
            }
            public void InBoundUrl_WithNonGetMethod_IsNotRouted()
            {
                var url = new NavigationRouter.HorizontalTabsRoute().Url.ToAppRelativeUrl();

                url.WithMethodsExcept(HttpVerbs.Get).ShouldMapToNothing();
            }
 public void InBoundUrl_WithNonGetMethod_IsNotRouted()
 {
     var url = new NavigationRouter.HorizontalTabsRoute().Url.ToAppRelativeUrl();
     url.WithMethodsExcept(HttpVerbs.Get).ShouldMapToNothing();
 }