コード例 #1
0
 public string GetRedoMsg()
 {
     return(RedoStringGenerator.ForDeletedEvent(patient,
                                                deleteAppointmentCommand.AggregateId.Date,
                                                deleteAppointmentCommand.RemovedAppointmentStartTime,
                                                deleteAppointmentCommand.RemovedAppointmentEndTime));
 }
コード例 #2
0
 public string GetRedoMsg()
 {
     if (replaceAppointmentCommand.SourceAggregateId.Date == replaceAppointmentCommand.DestinationAggregateId.Date)
     {
         return(RedoStringGenerator.ForReplacedEvent(patient,
                                                     replaceAppointmentCommand.NewDate,
                                                     replaceAppointmentCommand.NewStartTime,
                                                     replaceAppointmentCommand.NewEndTime,
                                                     newTherapyPlace,
                                                     replaceAppointmentCommand.OriginalStartTime,
                                                     replaceAppointmentCommand.OriginalEndTime,
                                                     originalTherapyPlace));
     }
     else
     {
         return(RedoStringGenerator.ForDividedReplacedEvent(patient,
                                                            replaceAppointmentCommand.NewDate,
                                                            replaceAppointmentCommand.OriginalDate,
                                                            replaceAppointmentCommand.NewStartTime,
                                                            replaceAppointmentCommand.OriginalStartTime,
                                                            replaceAppointmentCommand.NewEndTime,
                                                            replaceAppointmentCommand.OriginalEndTime,
                                                            newTherapyPlace,
                                                            originalTherapyPlace));
     }
 }
コード例 #3
0
 public string GetRedoMsg()
 {
     return(RedoStringGenerator.ForAddedEvent(patient,
                                              addAppointmentCommand.AggregateId.Date,
                                              addAppointmentCommand.StartTime,
                                              addAppointmentCommand.EndTime));
 }