public void deleteExistentProductDependency()
 {
     int id = 1;
     ProductService productService = new ProductService();
     Boolean result = false;
     try
     {
         result = productService.DeleteProduct(id);
     }
     catch (DependencyException e)
     {
         Assert.AreEqual("The product has auctions. It cannot be deleted!", e.Message);
     }
     Assert.AreEqual(result, false);
 }
 public void DeleteProductInexistent()
 {
     int id = 100;
     ProductService productService = new ProductService();
     Boolean result = false;
     try
     {
         result = productService.DeleteProduct(id);
     }
     catch (EntityDoesNotExistException exc)
     {
         Assert.AreEqual("Product does not exists!", exc.Message);
     }
     Assert.AreEqual(result, false);
 }
 public void DeleteProductExistent()
 {
     int id = 20;
     ProductService productService = new ProductService();
     Boolean result = false;
     result = productService.DeleteProduct(id);
     Assert.AreEqual(result, true);
 }