protected virtual string BuildConnStr(TestDataPoolType type) { switch (type) { case TestDataPoolType.TXT: return(""); case TestDataPoolType.CSV: return(""); case TestDataPoolType.XML: return(""); case TestDataPoolType.Excel: return("Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + this._fileName + ";" + "Extended Properties=Excel 8.0;"); case TestDataPoolType.Access: return(""); case TestDataPoolType.Oracle: return(""); case TestDataPoolType.Sybase: return(""); case TestDataPoolType.DB2: return(""); case TestDataPoolType.MySql: return(""); case TestDataPoolType.SqlServer: return(""); case TestDataPoolType.Memory: return(""); case TestDataPoolType.Network: return(""); case TestDataPoolType.Other: return(""); default: return(null); } }
public TestDataPool(TestDataPoolType type) { this._databaseType = type; }
protected virtual string BuildConnStr(TestDataPoolType type) { switch (type) { case TestDataPoolType.TXT: return ""; case TestDataPoolType.CSV: return ""; case TestDataPoolType.XML: return ""; case TestDataPoolType.Excel: return "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + this._fileName + ";" + "Extended Properties=Excel 8.0;"; case TestDataPoolType.Access: return ""; case TestDataPoolType.Oracle: return ""; case TestDataPoolType.Sybase: return ""; case TestDataPoolType.DB2: return ""; case TestDataPoolType.MySql: return ""; case TestDataPoolType.SqlServer: return ""; case TestDataPoolType.Memory: return ""; case TestDataPoolType.Network: return ""; case TestDataPoolType.Other: return ""; default: return null; } }