Inheritance: UCosmic.Www.Mvc.Controllers.MvcRoute
            public void InBoundUrl_WithGetMethod_IsRouted()
            {
                Expression <Func <FeaturesController, ActionResult> > action =
                    controller => controller.ReleasesNav();
                var url = new FeaturesRouter.ReleasesNavRoute().Url.ToAppRelativeUrl();

                url.WithMethod(HttpVerbs.Get).ShouldMapTo(action);
            }
            public void OutBoundUrl_IsRouted()
            {
                Expression <Func <FeaturesController, ActionResult> > action =
                    controller => controller.ReleasesNav();
                var url = new FeaturesRouter.ReleasesNavRoute().Url.ToAppRelativeUrl();

                OutBoundRoute.Of(action).InArea(Area).AppRelativeUrl().ShouldEqual(url);
            }
Example #3
0
 public void InBoundUrl_WithNonGetMethod_IsNotRouted()
 {
     var url = new FeaturesRouter.ReleasesNavRoute().Url.ToAppRelativeUrl();
     url.WithMethodsExcept(HttpVerbs.Get).ShouldMapToNothing();
 }
Example #4
0
 public void InBoundUrl_WithGetMethod_IsRouted()
 {
     Expression<Func<FeaturesController, ActionResult>> action =
         controller => controller.ReleasesNav();
     var url = new FeaturesRouter.ReleasesNavRoute().Url.ToAppRelativeUrl();
     url.WithMethod(HttpVerbs.Get).ShouldMapTo(action);
 }
Example #5
0
 public void OutBoundUrl_IsRouted()
 {
     Expression<Func<FeaturesController, ActionResult>> action =
         controller => controller.ReleasesNav();
     var url = new FeaturesRouter.ReleasesNavRoute().Url.ToAppRelativeUrl();
     OutBoundRoute.Of(action).InArea(Area).AppRelativeUrl().ShouldEqual(url);
 }
            public void InBoundUrl_WithNonGetMethod_IsNotRouted()
            {
                var url = new FeaturesRouter.ReleasesNavRoute().Url.ToAppRelativeUrl();

                url.WithMethodsExcept(HttpVerbs.Get).ShouldMapToNothing();
            }