private DbCommand CreateCommand(string sqlKey, params string[] parameterPlaceholders) { DbCommand command = Factory.CreateCommand(); command.Connection = CreateConnection(); command.CommandText = SqlStringFactory.GetSql(sqlKey, parameterPlaceholders); return(command); }
public void TestSqlWithParameters() { string sqlWithParameters = SqlStringFactory.GetSql(SqlParamsKey, Param); Assert.AreEqual(ExpectedSqlWithParams, sqlWithParameters); }
public void TestSqlStringRead() { string sqlText = SqlStringFactory.GetSql(SqlKey); Assert.AreEqual(ExpectedSql, sqlText); }