public void When(CurrentSupplierNotified @event) { switch (_state) { case State.AwaitingCurrentSupplierNotificationDispatch: SetInternalState(State.AwaitingSupplierChange); ScheduleSupplierChange(); break; default: ThrowIfStateDoesNotMatch(@event); break; } }
public Task Handle(CurrentSupplierNotified notification, CancellationToken cancellationToken) { throw new System.NotImplementedException(); }