예제 #1
0
        public void When(EnergySupplierChanged @event)
        {
            switch (_state)
            {
            case State.AwaitingSupplierChange:
                SetInternalState(State.Completed);
                break;

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