public override bool Equals(object other)
        {
            if (other == null || other.GetType() != typeof(ProductPriceChanged))
            {
                return(false);
            }

            ProductPriceChanged otherProductPriceChanged = (ProductPriceChanged)other;

            return(this.Price == otherProductPriceChanged.Price &&
                   this.EventVersion == otherProductPriceChanged.EventVersion);
        }
 public void When(ProductPriceChanged e)
 {
     this.Price = e.Price;
 }