private async Task <IDocumentStore> createStoreWithCert(string url, X509Certificate2 certificate) { var setup = new GenericRavenDbSetup(_logger, _indexManager); var store = setup.InitializeDatastore("EarlyLearning", url, certificate); await setup.AddIndexesToDatabase(store); return(store); }
public async Task <IDocumentStore> CreateWithoutData(string url) { var setup = new GenericRavenDbSetup(_logger, _indexManager); var dbName = "EarlyLearning-Dev"; var store = setup.InitializeDatastore(dbName, url); await EnsureDatabaseExistsAsync(store, dbName); await setup.AddIndexesToDatabase(store); return(store); }