Inheritance: UCosmic.Www.Mvc.Controllers.MvcRoute
Exemplo n.º 1
0
 public void InBoundUrl_WithGetMethod_IsRouted()
 {
     Expression<Func<SkinsController, ActionResult>> action =
        controller => controller.Logo();
     var url = new SkinsRouter.LogoRoute().Url.ToAppRelativeUrl();
     url.WithMethod(HttpVerbs.Get).ShouldMapTo(action);
 }
Exemplo n.º 2
0
 public void InBoundUrl_WithNonGetMethod_IsNotRouted()
 {
     var url = new SkinsRouter.LogoRoute().Url.ToAppRelativeUrl();
     url.WithMethodsExcept(HttpVerbs.Get).ShouldMapToNothing();
 }
Exemplo n.º 3
0
 public void OutBoundUrl_IsRouted()
 {
     Expression<Func<SkinsController, ActionResult>> action =
        controller => controller.Logo();
     var url = new SkinsRouter.LogoRoute().Url.ToAppRelativeUrl();
     OutBoundRoute.Of(action).InArea(Area).AppRelativeUrl().ShouldEqual(url);
 }