Example #1
0
 public UnauthorizedBasketItem(Product product, UnauthorizedBasket basket, Quantity quantity)
 {
     Product        = product;
     _basket        = basket;
     Quantity       = quantity;
     CreationDate   = DateTime.Now; //ToDo
     LastUpdateDate = DateTime.Now; //ToDo
 }
 public static UnauthorizedBasketItem CreateItemFor(Product product, UnauthorizedBasket basket)
 {
     return(new UnauthorizedBasketItem(product, basket, new Quantity(1)));
 }