public void TestUpdateProdut() { //Arrange DataProduct dataProduct = new DataProduct(); ServiceProduct product = dataProduct.GetProductById(6); int rowsAffected; //Act product.Name = "SSD harddisk"; rowsAffected = dataProduct.UpdateProduct(product); //Assert Assert.IsTrue(rowsAffected >= 1, "Rows affected " + rowsAffected + product.Name); }
public void UpdateProduct(ServiceProduct product) { dataProduct.UpdateProduct(product); }
public bool UpdateProduct(Product productToUpdate) { DataProduct dp = new DataProduct(); return(dp.UpdateProduct(productToUpdate)); }