コード例 #1
0
        /// <summary>
        /// Asserts that the API route exists, has the specified Http method and meets the expectations
        /// </summary>
        public static void HasApiRoute(HttpConfiguration config, string url, HttpMethod httpMethod, object expectations)
        {
            var propertyReader = new PropertyReader();
            var expectedProps = propertyReader.Properties(expectations);

            HasApiRoute(config, url, httpMethod, expectedProps);
        }
コード例 #2
0
 /// <summary>
 /// Asserts that the route exists and meets expectations
 /// </summary>
 public static void HasRoute(RouteCollection routes, string url, object expectations)
 {
     var propertyReader = new PropertyReader();
     var expectedProps = propertyReader.Properties(expectations);
     HasRoute(routes, url, expectedProps);
 }