/// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (TrustId != null)
         {
             hashCode = hashCode * 59 + TrustId.GetHashCode();
         }
         if (UnitCode != null)
         {
             hashCode = hashCode * 59 + UnitCode.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <summary>
        /// Returns true if DutyWhere instances are equal
        /// </summary>
        /// <param name="other">Instance of DutyWhere to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DutyWhere other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     TrustId == other.TrustId ||
                     TrustId != null &&
                     TrustId.Equals(other.TrustId)
                     ) &&
                 (
                     UnitCode == other.UnitCode ||
                     UnitCode != null &&
                     UnitCode.Equals(other.UnitCode)
                 ));
        }
        /// <summary>
        /// Returns true if VacancyWhere instances are equal
        /// </summary>
        /// <param name="other">Instance of VacancyWhere to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(VacancyWhere other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     TrustId == other.TrustId ||
                     TrustId != null &&
                     TrustId.Equals(other.TrustId)
                     ) &&
                 (
                     Location == other.Location ||
                     Location != null &&
                     Location.Equals(other.Location)
                 ));
        }