public async Task HandleAsync(CartCheckedOut @event) { var cart = await Repository.GetByIdAsync <ShoppingCart>(@event.AggregateId); var shippingSaga = ShippingSaga.Create(Guid.NewGuid(), @event.AggregateId, cart.CustomerId, cart.ShoppingCartItems); await Repository.SaveAsync(shippingSaga); }
private void Handle(CartCheckedOut evt) { db.RemoveCart(evt.CartId); }
private void Apply(CartCheckedOut evt) { this.checkedOut = true; }
public void Handle(CartCheckedOut evt) { Model.CartCheckedOut(evt.CartId, evt.Timestamp); }
private void When(CartCheckedOut e) { _items.Clear(); VoucherId = null; VoucherAmount = null; }
public async Task HandleAsync(CartCheckedOut @event) { await _repository.RemoveAsync(@event.AggregateId); }
public void Handle(CartCheckedOut evt) { context.RemoveCart(evt.CartId); }