M
Mark
I'm building some NUnit tests for the business classes in my ASP.NET
application. Some of the business classes use Session to store information.
NUnit does not generate a Session, so the code below bombs when a
HttpContext.Current.Session["some_key"];
Any suggestions on the best alternative for working around this, without
making a hack job out of the code? I can check the HttpContext.Current and
check to see if it is null, but where/how should I store the alternative
session information? Not sure if it is relevant, but I'm not using
NUnitAsp.
Thanks in advance.
Mark
application. Some of the business classes use Session to store information.
NUnit does not generate a Session, so the code below bombs when a
HttpContext.Current.Session["some_key"];
Any suggestions on the best alternative for working around this, without
making a hack job out of the code? I can check the HttpContext.Current and
check to see if it is null, but where/how should I store the alternative
session information? Not sure if it is relevant, but I'm not using
NUnitAsp.
Thanks in advance.
Mark