public void Inbound_WithGet_AndEstablishmentId0_MapsToNothing()
            {
                const int establishmentId = 0;
                var routeUrl = new UpdateAffiliationRouter.GetRoute().Url;
                const string establishmentIdParam = "establishmentId";
                var urlFormat = routeUrl.Replace(establishmentIdParam, "0");
                var url = string.Format(urlFormat, establishmentId).ToAppRelativeUrl();

                url.WithMethod(HttpVerbs.Get).ShouldMapToNothing();
            }
            public void Inbound_WithNonGetPostOrPut_AndPositiveEstablishmentId_MapsToNothing()
            {
                const int establishmentId = 4;
                var routeUrl = new UpdateAffiliationRouter.GetRoute().Url;
                const string establishmentIdParam = "establishmentId";
                var urlFormat = routeUrl.Replace(establishmentIdParam, "0");
                var url = string.Format(urlFormat, establishmentId).ToAppRelativeUrl();

                url.WithMethodsExcept(HttpVerbs.Get, HttpVerbs.Put, HttpVerbs.Post).ShouldMapToNothing();
            }
            public void Inbound_WithNonGetPostOrPut_AndPositiveEstablishmentId_MapsToNothing()
            {
                const int    establishmentId      = 4;
                var          routeUrl             = new UpdateAffiliationRouter.GetRoute().Url;
                const string establishmentIdParam = "establishmentId";
                var          urlFormat            = routeUrl.Replace(establishmentIdParam, "0");
                var          url = string.Format(urlFormat, establishmentId).ToAppRelativeUrl();

                url.WithMethodsExcept(HttpVerbs.Get, HttpVerbs.Put, HttpVerbs.Post).ShouldMapToNothing();
            }
            public void Inbound_WithGet_AndEstablishmentId0_MapsToNothing()
            {
                const int    establishmentId      = 0;
                var          routeUrl             = new UpdateAffiliationRouter.GetRoute().Url;
                const string establishmentIdParam = "establishmentId";
                var          urlFormat            = routeUrl.Replace(establishmentIdParam, "0");
                var          url = string.Format(urlFormat, establishmentId).ToAppRelativeUrl();

                url.WithMethod(HttpVerbs.Get).ShouldMapToNothing();
            }
            public void Outbound_ForGetAction_AndPositiveEstablishmentId_MapsToUrl()
            {
                const int establishmentId = 5;
                Expression<Func<UpdateAffiliationController, ActionResult>> action =
                    controller => controller.Get(establishmentId);
                var routeUrl = new UpdateAffiliationRouter.GetRoute().Url;
                const string establishmentIdParam = "establishmentId";
                var urlFormat = routeUrl.Replace(establishmentIdParam, "0");
                var url = string.Format(urlFormat, establishmentId).ToAppRelativeUrl();

                OutBoundRoute.Of(action).InArea(AreaName).WithMethod(HttpVerbs.Get).AppRelativeUrl().ShouldEqual(url);
            }
            public void Inbound_WithGet_AndPositiveEstablishmentId_MapsToGetAction()
            {
                const int establishmentId = 1;
                Expression<Func<UpdateAffiliationController, ActionResult>> action =
                    controller => controller.Get(establishmentId);
                var routeUrl = new UpdateAffiliationRouter.GetRoute().Url;
                const string establishmentIdParam = "establishmentId";
                var urlFormat = routeUrl.Replace(establishmentIdParam, "0");
                var url = string.Format(urlFormat, establishmentId).ToAppRelativeUrl();

                url.WithMethod(HttpVerbs.Get).ShouldMapTo(action);
            }
            public void Outbound_ForGetAction_AndPositiveEstablishmentId_MapsToUrl()
            {
                const int establishmentId = 5;
                Expression <Func <UpdateAffiliationController, ActionResult> > action =
                    controller => controller.Get(establishmentId);
                var          routeUrl             = new UpdateAffiliationRouter.GetRoute().Url;
                const string establishmentIdParam = "establishmentId";
                var          urlFormat            = routeUrl.Replace(establishmentIdParam, "0");
                var          url = string.Format(urlFormat, establishmentId).ToAppRelativeUrl();

                OutBoundRoute.Of(action).InArea(AreaName).WithMethod(HttpVerbs.Get).AppRelativeUrl().ShouldEqual(url);
            }
            public void Inbound_WithGet_AndPositiveEstablishmentId_MapsToGetAction()
            {
                const int establishmentId = 1;
                Expression <Func <UpdateAffiliationController, ActionResult> > action =
                    controller => controller.Get(establishmentId);
                var          routeUrl             = new UpdateAffiliationRouter.GetRoute().Url;
                const string establishmentIdParam = "establishmentId";
                var          urlFormat            = routeUrl.Replace(establishmentIdParam, "0");
                var          url = string.Format(urlFormat, establishmentId).ToAppRelativeUrl();

                url.WithMethod(HttpVerbs.Get).ShouldMapTo(action);
            }