Click here to Skip to main content
11,576,060 members (56,495 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Revisions
Add your own
alternative version

MVC Test Driven Development: Session Variables

, 12 Aug 2011 CPOL 23K 18
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.

Revisions


  

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

License

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

Share

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. arusselkm@yahoo.com

You may also be interested in...

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