Пример #1
0
        public void should_get_scalar_result(
            [Values(FirstBatch, "")] string firstBatch)
        {
            var result = SqlStatement.ExecuteScalar <int>($"{firstBatch}SELECT COUNT(*) FROM {Database.FirstTable.Name}");

            result.ShouldBeGreaterThan(8);
        }
Пример #2
0
 public static T ExecuteScalar <T>(this ISqlStatement sqlStatement,
                                   string commandText, object parameters)
 {
     return(sqlStatement.ExecuteScalar <T>(commandText, parameters.AsDictionary()));
 }