private void Apply(AddressConfirmed evt) { _status = _status == Status.PaymentReceived ? Status.ReadyToCompleteForShipping : Status.AddressReceived; }
private void Apply(AddressConfirmed evt) { status = status == Status.PaymentReceived ? Status.ReadyToComplete : Status.AddressReceived; }
public async Task HandleAsync(AddressConfirmed @event) { await ExecuteAsync(@event.AggregateId, shippingSaga => shippingSaga.CompleteForShipping()); }