Inheritance: UCosmic.Www.Mvc.Controllers.MvcRoute
Ejemplo n.º 1
0
            public void InBoundUrl_WithAnyMethod_IsRouted()
            {
                Expression <Func <ErrorsController, ActionResult> > action =
                    controller => controller.BadRequest();
                var url = new ErrorsRouter.BadRequestRoute().Url.ToAppRelativeUrl();

                url.WithAnyMethod().ShouldMapTo(action);
            }
Ejemplo n.º 2
0
            public void OutBoundUrl_IsRouted()
            {
                Expression <Func <ErrorsController, ActionResult> > action =
                    controller => controller.BadRequest();
                var url = new ErrorsRouter.BadRequestRoute().Url.ToAppRelativeUrl();

                OutBoundRoute.Of(action).InArea(Area).AppRelativeUrl().ShouldEqual(url);
            }
Ejemplo n.º 3
0
 public void InBoundUrl_WithAnyMethod_IsRouted()
 {
     Expression<Func<ErrorsController, ActionResult>> action =
         controller => controller.BadRequest();
     var url = new ErrorsRouter.BadRequestRoute().Url.ToAppRelativeUrl();
     url.WithAnyMethod().ShouldMapTo(action);
 }
Ejemplo n.º 4
0
 public void OutBoundUrl_IsRouted()
 {
     Expression<Func<ErrorsController, ActionResult>> action =
         controller => controller.BadRequest();
     var url = new ErrorsRouter.BadRequestRoute().Url.ToAppRelativeUrl();
     OutBoundRoute.Of(action).InArea(Area).AppRelativeUrl().ShouldEqual(url);
 }