Пример #1
0
 public void Schedule(AppointmentDoctor doctor, TimeSlot slot)
 {
     RaiseChangeEvent(
         AppointmentsDomain.Events.Appointment.DetailsChanged.Create(Id, doctor, slot));
     RaiseChangeEvent(
         AppointmentsDomain.Events.Appointment.AppointmentStarted.Create(Id));
 }
Пример #2
0
 public static DetailsChanged Create(Identifier id, AppointmentDoctor doctor, TimeSlot slot)
 {
     return(new DetailsChanged
     {
         EntityId = id,
         StartUtc = slot.From,
         EndUtc = slot.To,
         DoctorId = doctor.DoctorId,
         ModifiedUtc = DateTime.UtcNow
     });
 }