Example #1
0
        public async Task Count_WhereSpecification()
        {
            var films = new Films(ProviderName);
            var total = await films.CountAsync(where : "WHERE rental_duration=@0", args : 5);

            Assert.AreEqual(191, total);
        }
Example #2
0
        public async Task Count_NoSpecification()
        {
            var films = new Films(ProviderName);
            var total = await films.CountAsync();

            Assert.AreEqual(1000, total);
        }