Пример #1
0
        private DbCommand CreateCommand(string sqlKey, params string[] parameterPlaceholders)
        {
            DbCommand command = Factory.CreateCommand();

            command.Connection  = CreateConnection();
            command.CommandText = SqlStringFactory.GetSql(sqlKey, parameterPlaceholders);
            return(command);
        }
Пример #2
0
        public void TestSqlWithParameters()
        {
            string sqlWithParameters = SqlStringFactory.GetSql(SqlParamsKey, Param);

            Assert.AreEqual(ExpectedSqlWithParams, sqlWithParameters);
        }
Пример #3
0
        public void TestSqlStringRead()
        {
            string sqlText = SqlStringFactory.GetSql(SqlKey);

            Assert.AreEqual(ExpectedSql, sqlText);
        }