public override int GetHashCode() { unchecked { var hashCode = BenchTestCarriedOutAnalogue.GetHashCode(); hashCode = (hashCode * 397) ^ CalibrationCertificateCompleted.GetHashCode(); hashCode = (hashCode * 397) ^ ClockTestCompleted.GetHashCode(); hashCode = (hashCode * 397) ^ (Comments != null ? Comments.GetHashCode() : 0); hashCode = (hashCode * 397) ^ DateOfAudit.GetHashCode(); hashCode = (hashCode * 397) ^ DistanceCheckCarriedOut.GetHashCode(); hashCode = (hashCode * 397) ^ EventsFaultsReadCleared.GetHashCode(); hashCode = (hashCode * 397) ^ (FortyKmTest != null ? FortyKmTest.GetHashCode() : 0); hashCode = (hashCode * 397) ^ FunctionalBenchTestDigital.GetHashCode(); hashCode = (hashCode * 397) ^ KFactor.GetHashCode(); hashCode = (hashCode * 397) ^ LFactor.GetHashCode(); hashCode = (hashCode * 397) ^ Passed.GetHashCode(); hashCode = (hashCode * 397) ^ (QCManagerName != null ? QCManagerName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ReferenceCableCheckCompleted.GetHashCode(); hashCode = (hashCode * 397) ^ (SixtyKmTest != null ? SixtyKmTest.GetHashCode() : 0); hashCode = (hashCode * 397) ^ SpeedForSpeedCheckCompleted.GetHashCode(); hashCode = (hashCode * 397) ^ SystemSealedInAccordance.GetHashCode(); hashCode = (hashCode * 397) ^ (TachoCentreCity != null ? TachoCentreCity.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachoCentreLine1 != null ? TachoCentreLine1.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachoCentreLine2 != null ? TachoCentreLine2.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachoCentreLine3 != null ? TachoCentreLine3.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachoCentrePostCode != null ? TachoCentrePostCode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachographMake != null ? TachographMake.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachographModel != null ? TachographModel.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachographSerialNumber != null ? TachographSerialNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachoManagerName != null ? TachoManagerName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ TechnicalDataPrintoutsCreated.GetHashCode(); hashCode = (hashCode * 397) ^ (TechnicianName != null ? TechnicianName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ TestChartsCompleted.GetHashCode(); hashCode = (hashCode * 397) ^ ThreeBasicChecksCompleted.GetHashCode(); hashCode = (hashCode * 397) ^ (TypeOfTachographCheck != null ? TypeOfTachographCheck.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (VehicleIdentificationNumber != null ? VehicleIdentificationNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (VehicleMake != null ? VehicleMake.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (VehicleRegistrationNumber != null ? VehicleRegistrationNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (VehicleType != null ? VehicleType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ WFactor.GetHashCode(); return(hashCode); } }
public bool Equals(QCReport other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(BenchTestCarriedOutAnalogue == other.BenchTestCarriedOutAnalogue && CalibrationCertificateCompleted == other.CalibrationCertificateCompleted && ClockTestCompleted == other.ClockTestCompleted && string.Equals(Comments, other.Comments) && DateOfAudit.Equals(other.DateOfAudit) && DistanceCheckCarriedOut == other.DistanceCheckCarriedOut && EventsFaultsReadCleared == other.EventsFaultsReadCleared && string.Equals(FortyKmTest, other.FortyKmTest) && FunctionalBenchTestDigital == other.FunctionalBenchTestDigital && KFactor == other.KFactor && LFactor == other.LFactor && Passed == other.Passed && string.Equals(QCManagerName, other.QCManagerName) && ReferenceCableCheckCompleted == other.ReferenceCableCheckCompleted && string.Equals(SixtyKmTest, other.SixtyKmTest) && SpeedForSpeedCheckCompleted == other.SpeedForSpeedCheckCompleted && SystemSealedInAccordance == other.SystemSealedInAccordance && string.Equals(TachoCentreCity, other.TachoCentreCity) && string.Equals(TachoCentreLine1, other.TachoCentreLine1) && string.Equals(TachoCentreLine2, other.TachoCentreLine2) && string.Equals(TachoCentreLine3, other.TachoCentreLine3) && string.Equals(TachoCentrePostCode, other.TachoCentrePostCode) && string.Equals(TachographMake, other.TachographMake) && string.Equals(TachographModel, other.TachographModel) && string.Equals(TachographSerialNumber, other.TachographSerialNumber) && string.Equals(TachoManagerName, other.TachoManagerName) && TechnicalDataPrintoutsCreated == other.TechnicalDataPrintoutsCreated && string.Equals(TechnicianName, other.TechnicianName) && TestChartsCompleted == other.TestChartsCompleted && ThreeBasicChecksCompleted == other.ThreeBasicChecksCompleted && string.Equals(TypeOfTachographCheck, other.TypeOfTachographCheck) && string.Equals(VehicleIdentificationNumber, other.VehicleIdentificationNumber) && string.Equals(VehicleMake, other.VehicleMake) && string.Equals(VehicleRegistrationNumber, other.VehicleRegistrationNumber) && string.Equals(VehicleType, other.VehicleType) && WFactor == other.WFactor); }