Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public Task StartAsync(CancellationToken cancellationToken) =>
 Task.Run(() => migrator.Execute(configuration["DatabaseModuleConnectionString"]));