Click here to Skip to main content
13,293,126 members (97,026 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Revisions


20 bookmarked
Posted 12 Aug 2011

MVC Test Driven Development: Session Variables

, 12 Aug 2011
When you write a controller which is unit testable, it would be better to avoid any dependency to the HttpContext to make things easier. If you are using any of the session variables in your controller, it will make your controller difficult to test.



Compare Revision Minor Date Status Editor
6 - publicly available No 18-Aug-14 11:52 Available Deeksha Shenoy
Updates in content. Changes: 19
5 No 16-Aug-14 23:42 Pending Russell Aboobacker
Updates in content. Changes: 28
4 No 11-Apr-14 10:06 Available Sean Ewington
Updates in content.
3 No 12-Aug-11 7:22 Available Deeksha Shenoy
2 No 12-Aug-11 7:21 Available Deeksha Shenoy
1 No 12-Aug-11 7:21 Composing Deeksha Shenoy


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Russell Aboobacker
Web Developer
India India
Russell Aboobacker is a Software Engineer from India, Currently working in Cognizant, Bangalore as Software Architect. He Enjoys Coding and Sharing his Experiences with the Colleagues and Friends.When he is not coding he enjoys spending time with his Family.

If you have any suggestions / Ideas , Share it With me.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.171207.1 | Last Updated 12 Aug 2011
Article Copyright 2011 by Russell Aboobacker
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid