Performing and Testing Redirects with ASP.NET Web Forms MVP(joelabrahamsson.com)

submitted by webpoetwebpoet(415) 2 years, 1 month ago

The ASP.NET Web Forms MVP project helps us build more testable web sites. One of the hardest things to (unit) test when using ASP.NET Web Forms has traditionally been redirects as they are performed on the Http Context. When we use Web Forms MVP, which uses the HttpContextBase class, we can, with the help of test doubles quite easily test redirects. In this tutorial I show two ways to implement a unit test for a presenter method that performs a redirect when a condition has been met.

add a comment |category: |Views: 74

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story