Example #1
0
        public void GetAllApprovedProductsTest(string parameter, int value)
        {
            ProductSqlDAO   dao            = new ProductSqlDAO(connectionString);
            IList <Product> product        = dao.GetAllApprovedProducts();
            int             testResult     = product.Count;
            int             expectedResult = GetRowCountByBooleanParameter(parameter, value);

            Assert.AreEqual(expectedResult, testResult);
        }