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

            return
                ((
                     EffectiveFrom == other.EffectiveFrom ||
                     EffectiveFrom != null &&
                     EffectiveFrom.Equals(other.EffectiveFrom)
                     ) &&
                 (
                     DaysPerWeek == other.DaysPerWeek ||
                     DaysPerWeek != null &&
                     DaysPerWeek.Equals(other.DaysPerWeek)
                 ) &&
                 (
                     MaxDaysPerWeek == other.MaxDaysPerWeek ||
                     MaxDaysPerWeek != null &&
                     MaxDaysPerWeek.Equals(other.MaxDaysPerWeek)
                 ) &&
                 (
                     MaxShiftsPerWeek == other.MaxShiftsPerWeek ||
                     MaxShiftsPerWeek != null &&
                     MaxShiftsPerWeek.Equals(other.MaxShiftsPerWeek)
                 ) &&
                 (
                     MaxConsecutiveDays == other.MaxConsecutiveDays ||
                     MaxConsecutiveDays != null &&
                     MaxConsecutiveDays.Equals(other.MaxConsecutiveDays)
                 ) &&
                 (
                     MaxConsecutiveDaysRequested == other.MaxConsecutiveDaysRequested ||
                     MaxConsecutiveDaysRequested != null &&
                     MaxConsecutiveDaysRequested.Equals(other.MaxConsecutiveDaysRequested)
                 ) &&
                 (
                     MaxWorkTimePerDay == other.MaxWorkTimePerDay ||
                     MaxWorkTimePerDay != null &&
                     MaxWorkTimePerDay.Equals(other.MaxWorkTimePerDay)
                 ) &&
                 (
                     MaxDurationPerShift == other.MaxDurationPerShift ||
                     MaxDurationPerShift != null &&
                     MaxDurationPerShift.Equals(other.MaxDurationPerShift)
                 ) &&
                 (
                     AdditionalHoursPerWeek == other.AdditionalHoursPerWeek ||
                     AdditionalHoursPerWeek != null &&
                     AdditionalHoursPerWeek.Equals(other.AdditionalHoursPerWeek)
                 ) &&
                 (
                     MaxOvertimePerDay == other.MaxOvertimePerDay ||
                     MaxOvertimePerDay != null &&
                     MaxOvertimePerDay.Equals(other.MaxOvertimePerDay)
                 ) &&
                 (
                     MaxOvertimePerWeek == other.MaxOvertimePerWeek ||
                     MaxOvertimePerWeek != null &&
                     MaxOvertimePerWeek.Equals(other.MaxOvertimePerWeek)
                 ) &&
                 (
                     MaxOvertimePerCalendarMonth == other.MaxOvertimePerCalendarMonth ||
                     MaxOvertimePerCalendarMonth != null &&
                     MaxOvertimePerCalendarMonth.Equals(other.MaxOvertimePerCalendarMonth)
                 ) &&
                 (
                     WtdDayStart == other.WtdDayStart ||
                     WtdDayStart != null &&
                     WtdDayStart.Equals(other.WtdDayStart)
                 ) &&
                 (
                     WtdWeekDayStart == other.WtdWeekDayStart ||
                     WtdWeekDayStart != null &&
                     WtdWeekDayStart.Equals(other.WtdWeekDayStart)
                 ) &&
                 (
                     WtdWeekTimeStart == other.WtdWeekTimeStart ||
                     WtdWeekTimeStart != null &&
                     WtdWeekTimeStart.Equals(other.WtdWeekTimeStart)
                 ) &&
                 (
                     MinBreakBetweenShifts == other.MinBreakBetweenShifts ||

                     MinBreakBetweenShifts.Equals(other.MinBreakBetweenShifts)
                 ) &&
                 (
                     Notes == other.Notes ||
                     Notes != null &&
                     Notes.Equals(other.Notes)
                 ));
        }
Exemple #2
0
        /// <summary>
        /// Returns true if BankingProduct instances are equal
        /// </summary>
        /// <param name="other">Instance of BankingProduct to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(BankingProduct other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ProductId == other.ProductId ||
                     ProductId != null &&
                     ProductId.Equals(other.ProductId)
                     ) &&
                 (
                     EffectiveFrom == other.EffectiveFrom ||
                     EffectiveFrom != null &&
                     EffectiveFrom.Equals(other.EffectiveFrom)
                 ) &&
                 (
                     EffectiveTo == other.EffectiveTo ||
                     EffectiveTo != null &&
                     EffectiveTo.Equals(other.EffectiveTo)
                 ) &&
                 (
                     LastUpdated == other.LastUpdated ||
                     LastUpdated != null &&
                     LastUpdated.Equals(other.LastUpdated)
                 ) &&
                 (
                     ProductCategory == other.ProductCategory ||
                     ProductCategory != null &&
                     ProductCategory.Equals(other.ProductCategory)
                 ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     Description == other.Description ||
                     Description != null &&
                     Description.Equals(other.Description)
                 ) &&
                 (
                     Brand == other.Brand ||
                     Brand != null &&
                     Brand.Equals(other.Brand)
                 ) &&
                 (
                     BrandName == other.BrandName ||
                     BrandName != null &&
                     BrandName.Equals(other.BrandName)
                 ) &&
                 (
                     ApplicationUri == other.ApplicationUri ||
                     ApplicationUri != null &&
                     ApplicationUri.Equals(other.ApplicationUri)
                 ) &&
                 (
                     IsTailored == other.IsTailored ||
                     IsTailored != null &&
                     IsTailored.Equals(other.IsTailored)
                 ) &&
                 (
                     AdditionalInformation == other.AdditionalInformation ||
                     AdditionalInformation != null &&
                     AdditionalInformation.Equals(other.AdditionalInformation)
                 ));
        }