Пример #1
0
            public void Outbound_ForGetAction_MapsToUrl()
            {
                Expression<Func<UpdateNameController, ActionResult>> action =
                    controller => controller.Get();
                var url = new UpdateNameRouter.GetRoute().Url.ToAppRelativeUrl();

                OutBoundRoute.Of(action).InArea(AreaName).WithMethod(HttpVerbs.Get).AppRelativeUrl().ShouldEqual(url);
            }
Пример #2
0
            public void Inbound_WithGet_MapsToGetAction()
            {
                Expression<Func<UpdateNameController, ActionResult>> action =
                    controller => controller.Get();
                var url = new UpdateNameRouter.GetRoute().Url.ToAppRelativeUrl();

                url.WithMethod(HttpVerbs.Get).ShouldMapTo(action);
            }
Пример #3
0
            public void Outbound_ForGetAction_MapsToUrl()
            {
                Expression <Func <UpdateNameController, ActionResult> > action =
                    controller => controller.Get();
                var url = new UpdateNameRouter.GetRoute().Url.ToAppRelativeUrl();

                OutBoundRoute.Of(action).InArea(AreaName).WithMethod(HttpVerbs.Get).AppRelativeUrl().ShouldEqual(url);
            }
Пример #4
0
            public void Inbound_WithGet_MapsToGetAction()
            {
                Expression <Func <UpdateNameController, ActionResult> > action =
                    controller => controller.Get();
                var url = new UpdateNameRouter.GetRoute().Url.ToAppRelativeUrl();

                url.WithMethod(HttpVerbs.Get).ShouldMapTo(action);
            }
Пример #5
0
            public void Inbound_WithNonGet_MapsToNothing()
            {
                var url = new UpdateNameRouter.GetRoute().Url.ToAppRelativeUrl();

                url.WithMethodsExcept(HttpVerbs.Get).ShouldMapToNothing();
            }
Пример #6
0
            public void Inbound_WithNonGet_MapsToNothing()
            {
                var url = new UpdateNameRouter.GetRoute().Url.ToAppRelativeUrl();

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