Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (VIN != null ? VIN.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (VehicleMake != null ? VehicleMake.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (VehicleModel != null ? VehicleModel.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TyreSize != null ? TyreSize.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (VehicleType != null ? VehicleType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (WFactor != null ? WFactor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (KFactor != null ? KFactor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (LFactor != null ? LFactor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OdometerReading != null ? OdometerReading.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Tampered.GetHashCode();
         hashCode = (hashCode * 397) ^ (InvoiceNumber != null ? InvoiceNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (InspectionInfo != null ? InspectionInfo.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ TachographHasAdapter.GetHashCode();
         hashCode = (hashCode * 397) ^ (TachographAdapterSerialNumber != null ? TachographAdapterSerialNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TachographAdapterLocation != null ? TachographAdapterLocation.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TachographCableColor != null ? TachographCableColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MinorWorkDetails != null ? MinorWorkDetails.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TachographType != null ? TachographType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CardSerialNumber != null ? CardSerialNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CalibrationTime.GetHashCode();
         hashCode = (hashCode * 397) ^ IsDigital.GetHashCode();
         hashCode = (hashCode * 397) ^ NewBattery.GetHashCode();
         hashCode = (hashCode * 397) ^ (NewInspectionInfo != null ? NewInspectionInfo.GetHashCode() : 0);
         return(hashCode);
     }
 }
Example #2
0
 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);
     }
 }