示例#1
0
 public void AggregateRowCount()
 {
     using (RowCount rowCount = new RowCount())
     {
         IEnumerable <Row> result = rowCount.Execute(rows);
         List <Row>        items  = new List <Row>(result);
         Assert.Equal(1, items.Count);
         Assert.Equal(6, items[0]["count"]);
     }
 }
 public void AggregateRowCount()
 {
     using (RowCount rowCount = new RowCount())
     {
         IEnumerable<Row> result = rowCount.Execute(rows);
         List<Row> items = new List<Row>(result);
         Assert.AreEqual(1, items.Count);
         Assert.AreEqual(6, items[0]["count"]);
     }
 }
示例#3
0
        public async Task AggregateRowCount()
        {
            using (RowCount rowCount = new RowCount())
            {
                IAsyncEnumerable <Row> result = rowCount.Execute(rows.ToAsyncEnumerable());
                List <Row>             items  = await result.ToListAsync();

                Assert.Single(items);
                Assert.Equal(6, items[0]["count"]);
            }
        }