Last post Jul 28, 2010 03:48 AM by mkendrick
Jul 27, 2010 02:03 PM|mkendrick|LINK
I am going to write a HTTP Module
I want to set up a number of unit tests
these unit tests need to present different values in the HTTPREquest of the passed in HTTPApplication.
Does any one know how I can create a HTTPRequest and add it to a HTTPApplication that I can use in the HTTP Modules events.
HTTPApplication just has a getter for its request.
I tried to inherit from HTTPApplication , but my new class's Request property was ignored (even though it was set to new)
This is quite urgent and I would appreciate any ideas
Jul 28, 2010 12:42 AM|qwe123kids|LINK
I will Suggest Create Interface or Create Differnet Class and Acess the Method and do the test cases
Jul 28, 2010 12:43 AM|qwe123kids|LINK
unit test cases
Jul 28, 2010 03:48 AM|mkendrick|LINK
sorry dont quite follow
i can have a module , inside of which is my class.
i can unit test my class
but that doesnt test the module calling my class
and I cant test the module because I cant add a httprequest to http application which is what the problem is.
these are the non mvc versions and so are sealed.
can you give me a bit more detail please