Beispiel #1
0
        public override bool Equals(object other)
        {
            if (other == null || other.GetType() != typeof(ProductDescriptionChanged))
            {
                return(false);
            }

            ProductDescriptionChanged otherProductDescriptionChanged = (ProductDescriptionChanged)other;

            return(this.Description.Equals(otherProductDescriptionChanged.Description) &&
                   this.EventVersion == otherProductDescriptionChanged.EventVersion);
        }
Beispiel #2
0
 public void When(ProductDescriptionChanged e)
 {
     this.Description = e.Description;
 }