M
Madhur
Hello
I am delivering an asp.net 2.0 application to my customer. I need to know,
If I need to check for the condition of HttpContext.Current to be null
in my business logic. I have extensively used Cache and Session objects, and
currently I assume HttpContext.Current object to be existent.
Also, since I do not have this check, some of my unit test cases fail
because there is no HttpContext for them.
How do you handle this scenario. ?
Should I include check for existence of HttpContext.Current and may be even
more for Session and Cache objects ?
I am delivering an asp.net 2.0 application to my customer. I need to know,
If I need to check for the condition of HttpContext.Current to be null
in my business logic. I have extensively used Cache and Session objects, and
currently I assume HttpContext.Current object to be existent.
Also, since I do not have this check, some of my unit test cases fail
because there is no HttpContext for them.
How do you handle this scenario. ?
Should I include check for existence of HttpContext.Current and may be even
more for Session and Cache objects ?