public void should_VerifyConnection() { TestInitializer.InitDbMsSql(); var databaseProtocol = TestInitializer.IQtoolsDbProtocol; var connected = _databaseManager.VerifyConnection(databaseProtocol); Assert.True(connected); Console.WriteLine($"connection OK:[{databaseProtocol}] | {databaseProtocol.DatabaseType}"); }
public void should_GetConnection() { TestInitializer.InitDbMsSql(); var databaseProtocol = TestInitializer.IQtoolsDbProtocol; var connection = _databaseManager.GetConnection(databaseProtocol); Assert.NotNull(connection); Console.WriteLine($"connections Found:[{connection.ConnectionString}] | {databaseProtocol.DatabaseType}"); }
public void should_Verify_MSSQL_Query() { TestInitializer.InitDbMsSql(); var extract = Builder <Extract> .CreateNew().Build(); extract.ExtractSql = @"SELECT * FROM psmart_store"; var databaseProtocol = TestInitializer.IQtoolsDbProtocol; var verified = _databaseManager.VerifyQuery(extract, databaseProtocol); Assert.True(verified); Console.WriteLine($"{extract} query [{extract.ExtractSql}] OK | {databaseProtocol.DatabaseType}"); }