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