Exemplo n.º 1
0
 public AppointmentAggregate(LocalDateTime from, Period duration, int countOfSlot)
 {
     Slot = new AppointmentSlot()
     {
         Id          = Guid.NewGuid().ToString(),
         From        = from,
         Duration    = duration,
         CountOfSlot = countOfSlot,
     };
 }
Exemplo n.º 2
0
 public AppointmentAggregate(AppointmentSlot slot, IEnumerable <Appointment> appointments)
 {
     Slot = slot;
     Appointments.AddRange(appointments);
 }