Exemple #1
0
 private void Apply(BasketCheckedOut e)
 {
     Id              = e.AggregateRootId;
     Lines           = e.Lines.ToList();
     ShippingAddress = e.ShippingAddress;
 }
Exemple #2
0
 public BasketCheckedOut(Guid aggregateRootId, IEnumerable <OrderLine> lines, ShippingAddress shippingAddress)
     : base(aggregateRootId)
 {
     Lines           = lines;
     ShippingAddress = shippingAddress;
 }
Exemple #3
0
 internal CheckedOutBasket Checkout(ShippingAddress shippingAddress)
 {
     return(new CheckedOutBasket(GetSnapshot(), shippingAddress));
 }