public void Get_All_withparameter_Returns_filtered_Products()
        {
            NHProductDal productDal = new NHProductDal(new SqlServerHelper());
            var          result     = productDal.GetList(p => p.ProductName.Contains("ab"));

            Assert.AreEqual(4, result.Count);
        }
示例#2
0
        public void Get_products_count()
        {
            NHProductDal dal  = new NHProductDal(new SqlServerHelper());
            var          list = dal.GetList();

            Assert.AreEqual(77, list.Count);
        }
        public void Get_All_Returns_All_Products()
        {
            NHProductDal productDal = new NHProductDal(new SqlServerHelper());
            var          result     = productDal.GetList();

            Assert.AreEqual(77, result.Count);
        }