Exemple #1
0
        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);
        }
Exemple #2
0
 public void When(ProductPriceChanged e)
 {
     this.Price = e.Price;
 }