public override bool Equals(object other) { if (other == null || other.GetType() != typeof(ProductNameChanged)) { return(false); } ProductNameChanged otherProductNameChanged = (ProductNameChanged)other; return(this.Name.Equals(otherProductNameChanged.Name) && this.EventVersion == otherProductNameChanged.EventVersion); }
public void When(ProductNameChanged e) { this.Name = e.Name; }