@@ -12,15 +12,17 @@ public CheckPointMappings()
12
12
. ForCtorParam ( nameof ( CheckPointDto . Driver ) , opt => opt . MapFrom ( src => $ "{ src . DoctorReview . Driver . FirstName } { src . DoctorReview . Driver . LastName } ") )
13
13
. ForCtorParam ( nameof ( CheckPointDto . CarModel ) , opt => opt . MapFrom ( src => $ "{ src . MechanicHandover ! . Car . Model } ") )
14
14
. ForCtorParam ( nameof ( CheckPointDto . CurrentFuelAmount ) , opt => opt . MapFrom ( src => src . OperatorReview ! . InitialOilAmount ) )
15
- . ForCtorParam ( nameof ( CheckPointDto . Mechanic ) , opt => opt . MapFrom ( src => $ "{ src . MechanicHandover ! . Mechanic . FirstName } { src . MechanicHandover . Mechanic . LastName } ") )
15
+ . ForCtorParam ( nameof ( CheckPointDto . MechanicHandover ) , opt => opt . MapFrom ( src => $ "{ src . MechanicHandover ! . Mechanic . FirstName } { src . MechanicHandover . Mechanic . LastName } ") )
16
+ . ForCtorParam ( nameof ( CheckPointDto . MechanicAcceptance ) , opt => opt . MapFrom ( src => $ "{ src . MechanicAcceptance ! . Mechanic . FirstName } { src . MechanicAcceptance . Mechanic . LastName } ") )
16
17
. ForCtorParam ( nameof ( CheckPointDto . InitialMillage ) , opt => opt . MapFrom ( src => src . MechanicHandover ! . InitialMileage ) )
17
18
. ForCtorParam ( nameof ( CheckPointDto . FinalMileage ) , opt => opt . MapFrom ( src => src . DispatcherReview ! . FinalMileage ) )
18
19
. ForCtorParam ( nameof ( CheckPointDto . Operator ) , opt => opt . MapFrom ( src => $ "{ src . OperatorReview ! . Operator . FirstName } { src . OperatorReview . Operator . LastName } ") )
19
20
. ForCtorParam ( nameof ( CheckPointDto . InitialOilAmount ) , opt => opt . MapFrom ( src => src . OperatorReview ! . InitialOilAmount ) )
20
21
. ForCtorParam ( nameof ( CheckPointDto . OilRefillAmount ) , opt => opt . MapFrom ( src => src . OperatorReview ! . OilRefillAmount ) )
21
- . ForCtorParam ( nameof ( CheckPointDto . Oil ) , opt => opt . MapFrom ( src => src . OperatorReview . OilMark . Name ) )
22
+ . ForCtorParam ( nameof ( CheckPointDto . Oil ) , opt => opt . MapFrom ( src => src . OperatorReview ! . OilMark . Name ) )
22
23
. ForCtorParam ( nameof ( CheckPointDto . Dispatcher ) , opt => opt . MapFrom ( src => $ "{ src . DispatcherReview ! . Dispatcher . FirstName } { src . DispatcherReview . Dispatcher . LastName } ") )
23
24
. ForCtorParam ( nameof ( CheckPointDto . FuelConsumptionAdjustment ) , opt => opt . MapFrom ( src => src . DispatcherReview ! . FuelConsumptionAmount ) )
25
+ . ForCtorParam ( nameof ( CheckPointDto . RemainingFuelAmount ) , opt => opt . MapFrom ( src => src . DispatcherReview ! . RemainingFuelAmount ) )
24
26
. ForCtorParam ( nameof ( CheckPointDto . DebtAmount ) , opt => opt . MapFrom ( src => src . ManagerReview ! . DebtAmount ) ) ;
25
27
}
26
28
}
0 commit comments