ASP.NET MVC Tip #12 - Faking the Controller Context(weblogs.asp.net)

submitted by swaltherswalther(975) 3 years, 10 months ago

In this tip, Stephen Walther shows you how to test ASP.NET intrinsics when building unit tests for an ASP.NET MVC application. He shows you how to create a standard set of fake objects that enables you to fake the current user, the current user roles, the request parameters, session state, and cookies.

add a comment |category: |Views: 227

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