示例#1
0
        public void Count_WhereSpecification()
        {
            var film  = new Film(ProviderName);
            var total = film.Count(where : "WHERE rental_duration=@0", args: 5);

            Assert.AreEqual(191, total);
        }
示例#2
0
        public void Count_NoSpecification()
        {
            var film  = new Film(ProviderName);
            var total = film.Count();

            Assert.AreEqual(1000, total);
        }