示例#1
0
        public void GetItemByProductNumberTest(string productNumber, string expectedValue)
        {
            ProductSqlDAO dao  = new ProductSqlDAO(connectionString);
            Product       item = dao.GetItemByProductNumber(productNumber);

            expectedValue = item.ProductNumber;
            Assert.AreEqual(productNumber, expectedValue);
        }
示例#2
0
        public void UpdateIsSellableTest(string productNumber, int expectedValue)
        {
            ProductSqlDAO dao = new ProductSqlDAO(connectionString);

            dao.UpdateIsSellable(productNumber, 0);
            Product testProduct = dao.GetItemByProductNumber(productNumber);
            int     result      = testProduct.IsSellable;

            Assert.AreEqual(expectedValue, result);
        }