Author: Stephen Walther on ASP.NET MVC | Posted on: 8/3/2008 11:52:08 AM | Views : 861

In this tip, I demonstrate how you can create a special controller that you can use to test your custom routes. I also explain how you can give your routes back their names so you can more effectively unit test your routes. In this tip, I demonstrate how you can create a custom controller that you can use to debug the custom routes that you add to your ASP.NET MVC applications (see Figure 1). I also explain how you can create unit tests that test your custom routes by name. Figure 1 – Using the RouteDebugger Controller I was inspired to undertake this project by Phil Haack’s ASP.NET Routing Debugger: http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx However, there are some important differences between the Route Debugger...(read more) ...

Go to the complete details ...