public override Task Configure(string endpointName, EndpointConfiguration configuration, RunSettings settings) { var persistence = configuration.UsePersistence<SqlPersistence>(); persistence.ConnectionBuilder(() => new SqlConnection(ConnectionString)); persistence.TablePrefix("AcceptanceTests"); return Task.FromResult(0); }
public Task Configure(string endpointName, EndpointConfiguration configuration, RunSettings settings) { var documentStore = GetDocumentStore(); databaseName = documentStore.DefaultDatabase; configuration.GetSettings().Set(DefaultDocumentStoreKey, documentStore); var persistenceExtensions = configuration.UsePersistence<RavenDBPersistence>() .DoNotSetupDatabasePermissions() .SetDefaultDocumentStore(documentStore); configuration.GetSettings().Set(DefaultPersistenceExtensionsKey, persistenceExtensions); Console.WriteLine("Created '{0}' database", documentStore.DefaultDatabase); return Task.FromResult(0); }
public Task Configure(string endpointName, EndpointConfiguration configuration, RunSettings settings) { configuration.UsePersistence<InMemoryPersistence>(); return Task.FromResult(0); }