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