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 bool Equals(TachographDocument other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(base.Equals(other) && string.Equals(VIN, other.VIN) && string.Equals(VehicleMake, other.VehicleMake) && string.Equals(VehicleModel, other.VehicleModel) && string.Equals(TyreSize, other.TyreSize) && string.Equals(VehicleType, other.VehicleType) && string.Equals(WFactor, other.WFactor) && string.Equals(KFactor, other.KFactor) && string.Equals(LFactor, other.LFactor) && string.Equals(OdometerReading, other.OdometerReading) && Tampered == other.Tampered && string.Equals(InvoiceNumber, other.InvoiceNumber) && string.Equals(InspectionInfo, other.InspectionInfo) && TachographHasAdapter == other.TachographHasAdapter && string.Equals(TachographAdapterSerialNumber, other.TachographAdapterSerialNumber) && string.Equals(TachographAdapterLocation, other.TachographAdapterLocation) && string.Equals(TachographCableColor, other.TachographCableColor) && string.Equals(MinorWorkDetails, other.MinorWorkDetails) && string.Equals(TachographType, other.TachographType) && string.Equals(CardSerialNumber, other.CardSerialNumber) && CalibrationTime.Equals(other.CalibrationTime) && IsDigital == other.IsDigital && NewBattery == other.NewBattery && string.Equals(NewInspectionInfo, other.NewInspectionInfo));
 }