// public DatabaseInstaller(DbProvider dbProvider) // :this(dbProvider, dbProvider.DefaultDatabaseName, dbProvider.DefaultDatabaseName + "_log") // {} public DatabaseInstaller(DbProvider dbProvider, string databaseName, string dataLogicalName, string logLogicalName) { this.dbProvider = dbProvider; this.databaseName = databaseName; this.dataLogicalName = dataLogicalName; this.logLogicalName = logLogicalName; }
public DatabaseFromBackup(DbProvider dbProvider, object resourceContext, string resourceName, string databaseName, string logicalNameData, string logicalNameLog) : this(dbProvider, TestResourceLoader.GetResource(resourceContext, resourceName), databaseName, logicalNameData, logicalNameLog) { }
public DatabaseFromBackup(DbProvider dbProvider, IResource resource, string databaseName, string logicalNameData, string logicalNameLog) { // extracts database backup resource to temp dir and restores DB dbInstaller = new DatabaseInstaller(dbProvider, databaseName, logicalNameData, logicalNameLog); dbInstaller.InstallFromResourceBackup(resource); }