public void Initialize(DbSafeManagerConfig dbsafeConfig) { _dbSafe = SqlDbSafeManager.Initialize(dbsafeConfig, "product-db-test.xml") .SetConnectionString("ProductEntities-Test-Framework"); Console.WriteLine($"IsGlobalConfig: {_dbSafe.Config.IsGlobalConfig}, SerializeTests: {_dbSafe.Config.SerializeTests}, ReuseConnection: {_dbSafe.Config.ReuseConnection}"); }
public void Connection_is_not_reused() { var dbsafeConfig = new DbSafeManagerConfig { SerializeTests = true }; Initialize(dbsafeConfig); _dbSafe.ExecuteScripts("create-global-temp-table"); _dbSafe.AssertDatasetVsScript("dataset-temp-table-does-not-exist", "script-verify-if-temp-table-exists", "TempTableExists"); }
public static PgDbSafeManager Initialize(DbSafeManagerConfig config, params string[] filenames) { var result = new PgDbSafeManager(config); foreach (var filename in filenames) { result.Load(filename); } result.BeginTest(); return(result); }
private PgDbSafeManager(DbSafeManagerConfig config) : base(config, new PgDatabaseClient(config.ReuseConnection)) { }
private PgDbSafeManager(DbSafeManagerConfig config) : base(config, new PgDatabaseClient()) { }
private SqlDbSafeManager(DbSafeManagerConfig config) : base(config, new SqlDatabaseClient()) { }