/// <summary> /// Returns true if HistoryItem instances are equal /// </summary> /// <param name="other">Instance of HistoryItem to be compared</param> /// <returns>Boolean</returns> public bool Equals(HistoryItem other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( ProcessId == other.ProcessId || ProcessId != null && ProcessId.Equals(other.ProcessId) ) && ( IdentityId == other.IdentityId || IdentityId != null && IdentityId.Equals(other.IdentityId) ) && ( AllowedToEmployeeNames == other.AllowedToEmployeeNames || AllowedToEmployeeNames != null && AllowedToEmployeeNames.Equals(other.AllowedToEmployeeNames) ) && ( TransitionTime == other.TransitionTime || TransitionTime != null && TransitionTime.Equals(other.TransitionTime) ) && ( Order == other.Order || Order != null && Order.Equals(other.Order) ) && ( InitialState == other.InitialState || InitialState != null && InitialState.Equals(other.InitialState) ) && ( DestinationState == other.DestinationState || DestinationState != null && DestinationState.Equals(other.DestinationState) ) && ( Command == other.Command || Command != null && Command.Equals(other.Command) )); }
public bool Equals(Entry other) { return(other != null && Code.Equals(other.Code) && Volume.Equals(other.Volume) && Count.Equals(other.Count) && Date.Equals(other.Date) && Type.Equals(other.Type) && Sender.Equals(other.Sender) && Recipient.Equals(other.Recipient) && ShipmentCountry.Equals(other.ShipmentCountry) && ShipmentState.Equals(other.ShipmentState) && ShipmentRailRoad.Equals(other.ShipmentRailRoad) && ShipmentStation.Equals(other.ShipmentStation) && DestinationCountry.Equals(other.DestinationCountry) && DestinationState.Equals(other.DestinationState) && DestinationRailRoad.Equals(other.DestinationRailRoad) && DestinationStation.Equals(other.DestinationStation)); }