public void ProductRepository_UpdateProduct_1IfUpdate() { ProductRepository produtoRepository = new ProductRepository(); int actual = produtoRepository.Updates(new Product { ProductID = 1, Name = "Gurte IceCream", CategoryID = 1, Code = "200", PurchasePrice = 1, SalePrice = 2, Stock = new Stock { ProductID = 1, ManageStock = true, MaximunQuantity = 200, MinimunQuantity = 20 } }); //ClearConnection(); Assert.AreEqual(1, actual); }