Using Session data in Presenter of MVP pattern. RRS feed

  • General discussion

  • Hi,

    We are creating an asp.net web application using 3tier architecture and MVP pattern. As we all know the main purpose of MVP is to write unit test cases, we created unit test cases for Presenter. In presenter, we used HTPP session object. So, when we execute unit test cases, some of them are giving null refernce exception when they need to access data from session.

    Can anybody please let me know how to use session in Presenter in this case?



    Tuesday, July 27, 2010 3:16 PM