Ejemplo n.º 1
0
        /// <summary>
        /// Returns true if HoursAssignmentRequirement instances are equal
        /// </summary>
        /// <param name="other">Instance of HoursAssignmentRequirement to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(HoursAssignmentRequirement other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

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

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

            return
                ((
                     StaffNumber == other.StaffNumber ||
                     StaffNumber != null &&
                     StaffNumber.Equals(other.StaffNumber)
                     ) &&
                 (
                     Forenames == other.Forenames ||
                     Forenames != null &&
                     Forenames.Equals(other.Forenames)
                 ) &&
                 (
                     Surname == other.Surname ||
                     Surname != null &&
                     Surname.Equals(other.Surname)
                 ) &&
                 (
                     MobileNumber == other.MobileNumber ||
                     MobileNumber != null &&
                     MobileNumber.Equals(other.MobileNumber)
                 ) &&
                 (
                     Grade == other.Grade ||
                     Grade != null &&
                     Grade.Equals(other.Grade)
                 ) &&
                 (
                     GradeType == other.GradeType ||
                     GradeType != null &&
                     GradeType.Equals(other.GradeType)
                 ) &&
                 (
                     GradeTypeCategory == other.GradeTypeCategory ||
                     GradeTypeCategory != null &&
                     GradeTypeCategory.Equals(other.GradeTypeCategory)
                 ) &&
                 (
                     WTE == other.WTE ||

                     WTE.Equals(other.WTE)
                 ));
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Returns true if Contract instances are equal
        /// </summary>
        /// <param name="other">Instance of Contract to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Contract other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     StaffGroup == other.StaffGroup ||
                     StaffGroup != null &&
                     StaffGroup.Equals(other.StaffGroup)
                     ) &&
                 (
                     Grade == other.Grade ||
                     Grade != null &&
                     Grade.Equals(other.Grade)
                 ) &&
                 (
                     _Contract == other._Contract ||
                     _Contract != null &&
                     _Contract.Equals(other._Contract)
                 ) &&
                 (
                     Payscale == other.Payscale ||
                     Payscale != null &&
                     Payscale.Equals(other.Payscale)
                 ) &&
                 (
                     ContractType == other.ContractType ||
                     ContractType != null &&
                     ContractType.Equals(other.ContractType)
                 ) &&
                 (
                     ContractedTime == other.ContractedTime ||
                     ContractedTime != null &&
                     ContractedTime.Equals(other.ContractedTime)
                 ) &&
                 (
                     DefaultUnavailabilityHours == other.DefaultUnavailabilityHours ||
                     DefaultUnavailabilityHours != null &&
                     DefaultUnavailabilityHours.Equals(other.DefaultUnavailabilityHours)
                 ) &&
                 (
                     WtdOptOut == other.WtdOptOut ||

                     WtdOptOut.Equals(other.WtdOptOut)
                 ) &&
                 (
                     SalaryFrequency == other.SalaryFrequency ||
                     SalaryFrequency != null &&
                     SalaryFrequency.Equals(other.SalaryFrequency)
                 ) &&
                 (
                     SalaryAmount == other.SalaryAmount ||

                     SalaryAmount.Equals(other.SalaryAmount)
                 ));
        }