Esempio n. 1
0
        public void Cancel()
        {
            Printer.Print(ConsoleColor.Cyan);

            var @event = new AppointmentCancelled(Id);

            Apply(@event);
            DomainEvents.Publish(@event);
        }
Esempio n. 2
0
 public void Apply(AppointmentCancelled @event)
 {
     Status = Status.Canceled;
 }