Example #1
0
 public PickedUpBasket AddProduct(ProductId productId)
 {
     return (PickedUpBasket) Apply(this, new ProductAddedToBasket(
         BasketId.ToString(),
         productId.ToString()
     ));
 }
Example #2
0
        public PickedUpBasket RemoveProduct(ProductId productId)
        {
            AssertContainsProduct(productId);

            return (PickedUpBasket) Apply(this, new ProductRemovedFromBasket(
                BasketId.ToString(),
                productId.ToString()
            ));
        }