예제 #1
0
 public void Add (CartItem item)
 {
     _Items.Add(item);
     ApplyEvent(new ItemAddedToCart()
     {
         Id = item.Id,
         ProductId = item.ProductId,
         Quantity = item.Quantity
     });
 }
예제 #2
0
 public void Remove (CartItem item)
 {
     _Items.Remove(item);
 }