How can I use the equivalent of "rake routes" with ASP.NET MVC

I want to test specific routes of my ASP.NET MVC applicaiton. How can I see that all URLs, acceptable verbs and corresponding action methods are the same as mine?

+3


source to share


1 answer


One thing you can check: glimpse . It can show you how the routing engine picks your route for a given url.

If you want to assert that the routing is configured as you expect, given your url scheme, you can write unit tests for your routes ,

Reply to comment



How do you declaratively implement routes in MVC? I always thought that they should have compiled from C #, but perhaps you are using some kind of library that I have never heard of.

Also, you can argue that a given (set of) URLs that you do not intend to redirect are not routed.

0


source







All Articles