Ejemplo n.º 1
0
 public void InBoundUrl_WithGetMethod_IsRouted()
 {
     Expression<Func<QaController, ActionResult>> action =
        controller => controller.DeliverQaMail();
     var url = new QaRouter.DeliverQaMailRoute().Url.ToAppRelativeUrl();
     url.WithMethod(HttpVerbs.Get).ShouldMapTo(action);
 }
Ejemplo n.º 2
0
 public void OutBoundUrl_IsRouted()
 {
     Expression<Func<QaController, ActionResult>> action =
        controller => controller.DeliverQaMail();
     var url = new QaRouter.DeliverQaMailRoute().Url.ToAppRelativeUrl();
     OutBoundRoute.Of(action).InArea(Area).AppRelativeUrl().ShouldEqual(url);
 }
Ejemplo n.º 3
0
            public void InBoundUrl_WithGetMethod_IsRouted()
            {
                Expression <Func <QaController, ActionResult> > action =
                    controller => controller.DeliverQaMail();
                var url = new QaRouter.DeliverQaMailRoute().Url.ToAppRelativeUrl();

                url.WithMethod(HttpVerbs.Get).ShouldMapTo(action);
            }
Ejemplo n.º 4
0
            public void OutBoundUrl_IsRouted()
            {
                Expression <Func <QaController, ActionResult> > action =
                    controller => controller.DeliverQaMail();
                var url = new QaRouter.DeliverQaMailRoute().Url.ToAppRelativeUrl();

                OutBoundRoute.Of(action).InArea(Area).AppRelativeUrl().ShouldEqual(url);
            }
Ejemplo n.º 5
0
 public void InBoundUrl_WithNonGetMethodIsNotRouted()
 {
     var url = new QaRouter.DeliverQaMailRoute().Url.ToAppRelativeUrl();
     url.WithMethodsExcept(HttpVerbs.Get).ShouldMapToNothing();
 }
Ejemplo n.º 6
0
            public void InBoundUrl_WithNonGetMethodIsNotRouted()
            {
                var url = new QaRouter.DeliverQaMailRoute().Url.ToAppRelativeUrl();

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