Hi,
i have a few unittests running using it’s own AppHost.
How can i exclude 2 lines of code if the unittest is running inside my service?
//If unittest dont run this code
if (false)
{
}
I have a TestAppHost looking like this
public class TestAppHost : AppHostHttpListenerBase
{
/// <summary>
/// Default constructor.
/// Base constructor requires a name and assembly to locate web service classes.
/// </summary>
public TestAppHost()
: base("BokaMera.API", typeof (ResourceTimeExceptionService).Assembly)
{
Init();
Start(string.Format(TestBase.UrlBase));
}
Sorry for my lack of competence here but maybe you can help me?