public void Testv1() { var routes = new HttpRouteCollection(); routes.Add("test", new HttpRoute("test/{id}")); var conf = new HttpConfiguration(routes); var apiExplorer = conf.Services.GetApiExplorer(); var apiExplorerService = new ApiExplorerServiceVersion1(apiExplorer, "http://test.com"); var ramlDoc = apiExplorerService.GetRaml(); Assert.IsNotNull(ramlDoc); Assert.AreEqual(RamlVersion.Version1, ramlDoc.RamlVersion); }