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