Inheritance: UCosmic.Www.Mvc.Controllers.MvcRoute
Ejemplo n.º 1
0
            public void Inbound_WithPost_MapsToPostAction()
            {
                Expression<Func<PersonInfoController, ActionResult>> action =
                    controller => controller.ByGuid();
                var url = new PersonInfoRouter.ByGuidRoute().Url.ToAppRelativeUrl();

                url.WithMethod(HttpVerbs.Post).ShouldMapTo(action);
            }
Ejemplo n.º 2
0
            public void Inbound_WithPost_MapsToPostAction()
            {
                Expression <Func <PersonInfoController, ActionResult> > action =
                    controller => controller.ByGuid();
                var url = new PersonInfoRouter.ByGuidRoute().Url.ToAppRelativeUrl();

                url.WithMethod(HttpVerbs.Post).ShouldMapTo(action);
            }
Ejemplo n.º 3
0
            public void Outbound_ForPostAction_MapsToUrl()
            {
                Expression<Func<PersonInfoController, ActionResult>> action =
                    controller => controller.ByGuid();
                var url = new PersonInfoRouter.ByGuidRoute().Url.ToAppRelativeUrl();

                OutBoundRoute.Of(action).InArea(AreaName).WithMethod(HttpVerbs.Post)
                    .AppRelativeUrl().ShouldEqual(url);
            }
Ejemplo n.º 4
0
            public void Outbound_ForPostAction_MapsToUrl()
            {
                Expression <Func <PersonInfoController, ActionResult> > action =
                    controller => controller.ByGuid();
                var url = new PersonInfoRouter.ByGuidRoute().Url.ToAppRelativeUrl();

                OutBoundRoute.Of(action).InArea(AreaName).WithMethod(HttpVerbs.Post)
                .AppRelativeUrl().ShouldEqual(url);
            }
Ejemplo n.º 5
0
            public void Inbound_WithNonPost_MapsToNothing()
            {
                var url = new PersonInfoRouter.ByGuidRoute().Url.ToAppRelativeUrl();

                url.WithMethodsExcept(HttpVerbs.Post).ShouldMapToNothing();
            }
Ejemplo n.º 6
0
            public void Inbound_WithNonPost_MapsToNothing()
            {
                var url = new PersonInfoRouter.ByGuidRoute().Url.ToAppRelativeUrl();

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