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.Cur rent to be null
in my business logic. I have extensively used Cache and Session objects, and
currently I assume HttpContext.Cur rent 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.Cur rent and may be even
more for Session and Cache objects ?
--
Madhur
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.Cur rent to be null
in my business logic. I have extensively used Cache and Session objects, and
currently I assume HttpContext.Cur rent 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.Cur rent and may be even
more for Session and Cache objects ?
--
Madhur
Comment