示例#1
0
        public void When(CurrentSupplierNotified @event)
        {
            switch (_state)
            {
            case State.AwaitingCurrentSupplierNotificationDispatch:
                SetInternalState(State.AwaitingSupplierChange);
                ScheduleSupplierChange();
                break;

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