Unit Testing with HttpContext

Software

I am starting to implement some unit tests for my custom DataSourceControl / DataSourceView classes and immediately ran into the problem of not having a valid HttpContext against with to instantiate my objects.

Googling, I found the following helpful links:

http://weblogs.asp.net/jeff/archive/2004/05/31/145111.aspx

http://haacked.com/archive/2005/06/11/simulating_httpcontext.aspx

http://thewebfarm.com/blog/archive/2006/04/28/402.aspx

I was also digging through some old source code and found this link as a reference, but it appears dead:

http://righteousindignation.gotdns.org/blog/archive/2004/04/13/149.aspx

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Furl
  • Ma.gnolia
  • Reddit
  • TwitThis
No Comments

Leave a Reply

Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">