public void GetItemByProductNumberTest(string productNumber, string expectedValue) { ProductSqlDAO dao = new ProductSqlDAO(connectionString); Product item = dao.GetItemByProductNumber(productNumber); expectedValue = item.ProductNumber; Assert.AreEqual(productNumber, expectedValue); }
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); }