Unit Testing with HttpContext

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

Advertisements

0 Responses to “Unit Testing with HttpContext”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s





%d bloggers like this: