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