Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public async Task Count_NoSpecification()
        {
            var film  = new Film(ProviderName);
            var total = await film.CountAsync();

            Assert.AreEqual(1000, total);
        }