public IntegrationTestDbFixture() { Console.WriteLine("Bootstrapper.Init().."); ClassFactory = Bootstrapper.Init(); dbMigration = ClassFactory.GetMigrator(Environments.INTEGRATIONTEST); if (dbMigration == null) { throw new NoNullAllowedException("dbMigration not found.."); } Console.WriteLine("DestroyDb if any.."); dbMigration.DestroyDb(); Console.WriteLine("CreateDb.."); dbMigration.CreateDb(DB_DIRECTORY); }
public IntegrationTestDbFixture() { var configuration = ConfigBuilder.GetConfiguration(); ExportDescriptorProvider instanceRegistration(ContainerConfiguration r) => r.WithInstance(configuration); ClassFactory = Bootstrapper.Init(instanceRegistration); dbMigration = GetTestDbMigration(); if (dbMigration == null) { throw new NoNullAllowedException("dbMigration not found.."); } Console.WriteLine("DestroyDb if any.."); dbMigration.DestroyDb(); Console.WriteLine("CreateDb.."); dbMigration.CreateDb(DB_DIRECTORY); }