public void Cancel() { Printer.Print(ConsoleColor.Cyan); var @event = new AppointmentCancelled(Id); Apply(@event); DomainEvents.Publish(@event); }
public void Apply(AppointmentCancelled @event) { Status = Status.Canceled; }
public void Cancel() { Printer.Print(ConsoleColor.Cyan); var @event = new AppointmentCancelled(Id); Apply(@event); DomainEvents.Publish(@event); }
public void Apply(AppointmentCancelled @event) { Status = Status.Canceled; }