public DatabaseMigrationSelectorTests() { migrationRegistry = Substitute.For <IDatabaseMigrationRegistry>(); migrationProvider = Substitute.For <IDatabaseMigrationProvider>(); sut = new DatabaseMigrationSelector(migrationRegistry, migrationProvider); }
public DatabaseMigrationSelector(IDatabaseMigrationRegistry migrationRegistry, IDatabaseMigrationProvider migrationProvider, IDatabaseMigrationSelectorOptions selectorOptions) { this.migrationRegistry = migrationRegistry; this.migrationProvider = migrationProvider; this.selectorOptions = selectorOptions; }
public DatabaseMigrationSelectorTests() { migrationRegistry = Substitute.For <IDatabaseMigrationRegistry>(); migrationProvider = Substitute.For <IDatabaseMigrationProvider>(); selectorOptions = Substitute.For <IDatabaseMigrationSelectorOptions>(); selectorOptions.RerunRepeatableMigrationsOnDependencyUpdate.Returns(true); sut = new DatabaseMigrationSelector(migrationRegistry, migrationProvider, selectorOptions); }
public DatabaseMigrationExecutor(IDatabaseMigrationProvider[] migrationProviders, IDatabaseMigrationRegistry migrationRegistry, IDatabaseMigrationDiscovery[] migrationDiscoveries, IDatabaseMigrationSelector migrationSelector, IDatabaseMigrationExecutionOptions options) { this.migrationProviders = migrationProviders; this.migrationRegistry = migrationRegistry; this.migrationDiscoveries = migrationDiscoveries; this.migrationSelector = migrationSelector; this.options = options; }
public DatabaseMigrationExecutorTests() { migrationProviders = new[] { Substitute.For <IDatabaseMigrationProvider>() }; migrationProviders[0].GetProviderEnvironmentTags().Returns(new[] { "providerTag" }); migrationRegistry = Substitute.For <IDatabaseMigrationRegistry>(); migrationDiscoveries = new[] { Substitute.For <IDatabaseMigrationDiscovery>() }; migrationSelector = Substitute.For <IDatabaseMigrationSelector>(); migrationExecutionOptions = Substitute.For <IDatabaseMigrationExecutionOptions>(); migrationExecutionOptions.EnvironmentTags.Returns(new[] { "optionsTag" }); sut = new DatabaseMigrationExecutor(migrationProviders, migrationRegistry, migrationDiscoveries, migrationSelector, migrationExecutionOptions); }
public DatabaseMigrationSelector(IDatabaseMigrationRegistry migrationRegistry, IDatabaseMigrationProvider migrationProvider) { this.migrationRegistry = migrationRegistry; this.migrationProvider = migrationProvider; }