Esempio n. 1
0
 public void InBoundUrl_WithNonPutAndPostMethods_IsNotRouted()
 {
     var model = new RoleForm { EntityId = Guid.NewGuid() };
     var url = new RolesRouter.PutRoute().Url.ToAppRelativeUrl()
         .Replace("{entityId}", model.EntityId.ToString());
     url.WithMethodsExcept(HttpVerbs.Put, HttpVerbs.Post).ShouldMapToNothing();
 }
Esempio n. 2
0
            public void InBoundUrl_WithNonPutAndPostMethods_IsNotRouted()
            {
                var model = new RoleForm {
                    EntityId = Guid.NewGuid()
                };
                var url = new RolesRouter.PutRoute().Url.ToAppRelativeUrl()
                          .Replace("{entityId}", model.EntityId.ToString());

                url.WithMethodsExcept(HttpVerbs.Put, HttpVerbs.Post).ShouldMapToNothing();
            }