A complete, working example of how to use System.Web.Http.HttpRouteCollection.GetRouteData(). Created like this:
- In VS 2013, New Project -> Web, ASP.NET Web Application
- Select WebAPI. Check "Add unit tests".
- Add the following unit test:
A complete, working example of how to use System.Web.Http.HttpRouteCollection.GetRouteData(). Created like this: