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

            Assert.AreEqual(191, total);
        }
예제 #2
0
        public async Task Count_NoSpecification()
        {
            var film  = new Film(ProviderName);
            var total = await film.CountAsync();

            Assert.AreEqual(1000, total);
        }