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); }
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); }
public void InBoundUrl_Restful_WithHeadMethod_IsNotRouted() { var url = new ManagementFormsRouter.BrowseRoute().Url.ToAppRelativeUrl(); url.WithMethod(HttpVerbs.Head).ShouldMapToNothing(); }