public ServiceStackHostFixture()
        {
            _appHost = new BasicAppHost().Init();
            var container = _appHost.GetContainer();

            container.Register <IDocumentStore>(c => new DocumentStoreBuilder().Build())
            .ReusedWithin(ReuseScope.Hierarchy);

            container.Register <IUserAuthRepository>(c => new MartenAuthRepository(c.Resolve <IDocumentStore>()))
            .ReusedWithin(ReuseScope.Hierarchy);

            _appHost.Plugins.Add(new AuthFeature(() => new AuthUserSession(), new IAuthProvider[]
            {
                new CredentialsAuthProvider()
            })
            {
                MaxLoginAttempts = MaxLoginAttempts
            });
        }