Ejemplo n.º 1
0
 public string GetUndoMsg()
 {
     return(UndoStringGenerator.ForDeletedEvent(patient,
                                                deleteAppointmentCommand.AggregateId.Date,
                                                deleteAppointmentCommand.RemovedAppointmentStartTime,
                                                deleteAppointmentCommand.RemovedAppointmentEndTime));
 }
Ejemplo n.º 2
0
 public string GetUndoMsg()
 {
     if (replaceAppointmentCommand.SourceAggregateId.Date == replaceAppointmentCommand.DestinationAggregateId.Date)
     {
         return(UndoStringGenerator.ForReplacedEvent(patient,
                                                     replaceAppointmentCommand.NewDate,
                                                     replaceAppointmentCommand.NewStartTime,
                                                     replaceAppointmentCommand.NewEndTime,
                                                     newTherapyPlace,
                                                     replaceAppointmentCommand.OriginalStartTime,
                                                     replaceAppointmentCommand.OriginalEndTime,
                                                     originalTherapyPlace));
     }
     else
     {
         return(UndoStringGenerator.ForDividedReplacedEvent(patient,
                                                            replaceAppointmentCommand.NewDate,
                                                            replaceAppointmentCommand.OriginalDate,
                                                            replaceAppointmentCommand.NewStartTime,
                                                            replaceAppointmentCommand.OriginalStartTime,
                                                            replaceAppointmentCommand.NewEndTime,
                                                            replaceAppointmentCommand.OriginalEndTime,
                                                            newTherapyPlace,
                                                            originalTherapyPlace));
     }
 }
Ejemplo n.º 3
0
 public string GetUndoMsg()
 {
     return(UndoStringGenerator.ForAddedEvent(patient,
                                              addAppointmentCommand.AggregateId.Date,
                                              addAppointmentCommand.StartTime,
                                              addAppointmentCommand.EndTime));
 }