Пример #1
0
 public async Task <ConfirmNumberOfShipmentsChangeData> HandleAsync(GetChangeNumberOfShipmentConfrimationData message)
 {
     return(new ConfirmNumberOfShipmentsChangeData
     {
         NotificationId = message.NotificationId,
         CurrentNumberOfShipments = await shipmentHistotyRepository.GetCurrentNumberOfShipments(message.NotificationId),
         CurrentCharge = await notificationChargeCalculator.GetValue(message.NotificationId),
         NewCharge = await notificationChargeCalculator.GetValueForNumberOfShipments(message.NotificationId, message.NumberOfShipments)
     });
 }