Andrew Stopford's Weblog






Old Blogs

IContext, good or bad

One of the comments in Phil's post on using the MVP patten is mapping the Context object to a type that is based on a IContext pattern. For an example of what this does take a look at the interface here and its creation here (CreateContext method). It feels wrong me to though as your adding the request and response data to a collection and getting at the data that way and it seems to go from one object layout to another. I guess that for unit test purposes (mocking the data that this contains for example) this would be useful, am I right in my thinking here.

Posted: Aug 23 2006, 11:52 AM by astopford | with 2 comment(s)
Filed under: ,


No Comments