Exemplo n.º 1
0
        public void When(CurrentSupplierNotified @event)
        {
            switch (_state)
            {
            case State.AwaitingCurrentSupplierNotificationDispatch:
                SetInternalState(State.AwaitingSupplierChange);
                ScheduleSupplierChange();
                break;

            default:
                ThrowIfStateDoesNotMatch(@event);
                break;
            }
        }
Exemplo n.º 2
0
 public Task Handle(CurrentSupplierNotified notification, CancellationToken cancellationToken)
 {
     throw new System.NotImplementedException();
 }