public void ToNoMethod <TController>(HttpMethod httpMethod) where TController : ApiController { var controllerType = typeof(TController); ApiRouteAssert.RouteDoesNotHaveMethod(Configuration, Url, controllerType, httpMethod); }
/// <summary> /// Asserts that the API route for the url exists to the specified controller, but does not have the specified Http method. /// </summary> public static void ApiRouteDoesNotHaveMethod(HttpConfiguration config, string url, Type controllerType, HttpMethod httpMethod) { ApiRouteAssert.RouteDoesNotHaveMethod(config, url, controllerType, httpMethod); }