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); }
public void When(ProductDescriptionChanged e) { this.Description = e.Description; }