Beispiel #1
0
        public void BuildRouteTable()
        {
            routes = new HttpRouteCollection();
            configuration = new HttpConfiguration(routes);

            documentationProvider = new Mock<IDocumentationProviderEx>();
            configuration.Services.Replace(typeof(IDocumentationProvider), documentationProvider.Object);
            var routeMapper = new NuGetWebApiRouteMapper("api/");
            routeMapper.MapApiRoutes(configuration);
            routeMapper.MapODataRoutes(configuration);
        }
Beispiel #2
0
        public void BuildRouteTable()
        {
            routes        = new HttpRouteCollection();
            configuration = new HttpConfiguration(routes);

            documentationProvider = new Mock <IDocumentationProviderEx>();
            configuration.Services.Replace(typeof(IDocumentationProvider), documentationProvider.Object);
            var routeMapper = new NuGetWebApiRouteMapper("api/");

            routeMapper.MapApiRoutes(configuration);
            routeMapper.MapODataRoutes(configuration);
            routeMapper.MapSymbolSourceRoutes(configuration);
        }