Beispiel #1
0
 public Basket AddItemToBasket(SKU sku, int quantity, Money cost, DateTime addedAt)
 {
     return(new Basket(Items, new BasketItem(sku, quantity, cost, addedAt)));
 }
Beispiel #2
0
 public void AddItemToBasket(SKU sku, Money cost, int quantity, DateTime addedAt, Action <AccountName, IEvent> eventWriter)
 {
     eventWriter(AccountName, new ItemAddedToBasket(sku, cost, quantity, addedAt));
 }