Link to home
Start Free TrialLog in
Avatar of bovlk
bovlk

asked on

Detect if DLL is running from ASP.NET

Hello,

I've got a DLL that's usually run from within ASP.NET 3.5. However, for unit testing, we need to run it without it. The tested parts can run without ASP.NET, but I would need to detect whether this is being run by nUnit or ASP.NET to initialize a few variables. How can I detect if it was invoked by ASP.NET? Also, what method would you suggest for unit testing of web app code - I want to test various internal function that are not directly exposed to the web or web services, so using a browser-like approach will not work. Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of pschrama
pschrama

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial