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)
Source Click Here.
A
New
Internet
Library: Add Your Website/Blog
or Suggest A Website/Blog to our Free Web Directory
http://anil.myfunda.net.
Its very simple, free and SEO Friendly. Submit Now....
Its very simple, free and SEO Friendly. Submit Now....
Sunday, August 3, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Post your comments here: