public IntegrationTestDbFixture() { ClassFactory = Bootstrapper.Init("TenderSearch*.dll"); dbMigration = ClassFactory.GetMigrator(Environments.PRODUCTION); if (dbMigration == null) { throw new NoNullAllowedException("dbMigration not found.."); } dbMigration.Execute(DB_DIRECTORY); }
public Task StartAsync(CancellationToken cancellationToken) => Task.Run(() => migrator.Execute(configuration["DatabaseModuleConnectionString"]));