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