What system do you use to ensure that changes to the MVC route table does not cause conflicts, or hidden routes?
Please share details. For example, if in Excel, how do you organize it?
开发者_如何学GoI am not interested in the technical manner in which the routes are applied to the website (attributes, global.asax, etc) unless your technical solution also directly relates to an at-a-glance route management system.
Personally unit test my routes and a in order to ensure that changes to my routes table doesn't cause conflicts I run my unit tests and look for the Red color.
Routing in MVC is hard and error prone, that's why I created the MvcCodeRouting library. Among other things it detects conflicts (you'll get an exception) and you can also see the routes it creates for debugging.
Use unit tests, and to reduce number of them you can make data driven tests.
精彩评论