Inheritance: UCosmic.Www.Mvc.Controllers.MvcRoute
コード例 #1
0
 public void InBoundUrl_Restful_WithGetMethod_IsRouted()
 {
     Expression<Func<ManagementFormsController, ActionResult>> action =
        controller => controller.Browse();
     var url = new ManagementFormsRouter.BrowseRoute().Url.ToAppRelativeUrl();
     url.WithMethod(HttpVerbs.Get).ShouldMapTo(action);
 }
コード例 #2
0
 public void OutBoundUrl_IsRouted()
 {
     Expression<Func<ManagementFormsController, ActionResult>> action =
        controller => controller.Browse();
     var url = new ManagementFormsRouter.BrowseRoute().Url.ToAppRelativeUrl();
     OutBoundRoute.Of(action).InArea(Area).AppRelativeUrl().ShouldEqual(url);
 }
コード例 #3
0
            public void InBoundUrl_Restful_WithGetMethod_IsRouted()
            {
                Expression <Func <ManagementFormsController, ActionResult> > action =
                    controller => controller.Browse();
                var url = new ManagementFormsRouter.BrowseRoute().Url.ToAppRelativeUrl();

                url.WithMethod(HttpVerbs.Get).ShouldMapTo(action);
            }
コード例 #4
0
            public void OutBoundUrl_IsRouted()
            {
                Expression <Func <ManagementFormsController, ActionResult> > action =
                    controller => controller.Browse();
                var url = new ManagementFormsRouter.BrowseRoute().Url.ToAppRelativeUrl();

                OutBoundRoute.Of(action).InArea(Area).AppRelativeUrl().ShouldEqual(url);
            }
コード例 #5
0
 public void InBoundUrl_Restful_WithHeadMethod_IsNotRouted()
 {
     var url = new ManagementFormsRouter.BrowseRoute().Url.ToAppRelativeUrl();
     url.WithMethod(HttpVerbs.Head).ShouldMapToNothing();
 }
コード例 #6
0
            public void InBoundUrl_Restful_WithHeadMethod_IsNotRouted()
            {
                var url = new ManagementFormsRouter.BrowseRoute().Url.ToAppRelativeUrl();

                url.WithMethod(HttpVerbs.Head).ShouldMapToNothing();
            }