public class IntegrationTestBase : IDisposable
{
protected readonly ServiceStackHost appHost;
public const string BaseUri = "http://localhost:5000/";
public IntegrationTestBase()
{
Licensing.RegisterLicense(
"license key");
appHost = new BasicAppHost(typeof(AppHost).GetAssembly())
{
ConfigureContainer = container =>
{
//Add your IoC dependencies here
}
}
.Init()
.Start(BaseUri);
}
public void Dispose()
{
appHost.Dispose();
}
}
I need to write integration tests and used this code to start a host in order to make tests but it throws not implemented exception.