public void TestAsyncTableQueryCountAsync() { var conn = OrmAsyncTestSession.GetConnection(); conn.CreateTableAsync <Customer>().Wait(); conn.ExecuteAsync("delete from customer").Wait(); // create... for (int index = 0; index < 10; index++) { conn.InsertAsync(this.CreateCustomer()).Wait(); } // load... TableQuery <Customer> query = conn.Table <Customer>(); Task <int> task = query.CountAsync(); task.Wait(); // check... Assert.AreEqual(10, task.Result); }