Ejemplo n.º 1
0
 private void SendSickLeaveApprovedMessage(SickLeaveIsApproved message)
 {
     if (this.EventsById.TryGetValue(message.EventId, out var calendarEvent))
     {
         this.sickLeaveNotifications.Tell(new SendEmailSickLeaveActor.SendNotification(calendarEvent));
     }
 }
Ejemplo n.º 2
0
 private void OnSickleaveApproved(SickLeaveIsApproved message)
 {
     if (this.EventsById.TryGetValue(message.EventId, out var calendarEvent))
     {
         this.EventsById[message.EventId] = new CalendarEvent(message.EventId, calendarEvent.Type, calendarEvent.Dates, SickLeaveStatuses.Approved, this.EmployeeId);
     }
 }