public void TestProductEqualsIdenticalProduct()
 {
     ProductId prodOneId = new ProductId("1");
     Product prodOne = new Product(prodOneId, 10m);
     Product prodOneClone = new Product(prodOneId, 10m);
     Assert.IsTrue(prodOne.Equals(prodOneClone));
 }
 public void TestProductNotEqualsDifferentProductById()
 {
     ProductId prodOneId = new ProductId("1");
     ProductId prodTwoId = new ProductId("2");
     Product prodOne = new Product(prodOneId, 10m);
     Product prodTwo = new Product(prodTwoId, 10m);
     Assert.IsFalse(prodOne.Equals(prodTwo));
 }
 public void TestProductNotEqualsNull()
 {
     ProductId prodOneId = new ProductId("1");
     Product prodOne = new Product(prodOneId, 10m);
     Assert.IsFalse(prodOne.Equals(null));
 }
 public void TestProductEqualsSameProduct()
 {
     ProductId prodOneId = new ProductId("1");
     Product prod = new Product(prodOneId, 10m);
     Assert.IsTrue(prod.Equals(prod));
 }