I am testing a custom Auth repository where the CreateUserAuth method has a call to
var saltedHash = HostContext.Resolve<IHashProvider>();
In my test I registered in the setup
container.Register<IHashProvider>(x=>new SaltedHash());
and then I resolve the IUserAuthRepository
Everithing resolves fine until the call to the HostContext
The error says that :
System.Configuration.ConfigurationErrorsException : ServiceStack: AppHost does not exist or has not been initialized.