开发者

How do you ensure your MVC routes don't conflict with each other? What tracking system do you use?

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?

开发者_如何学Go

I 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜