コード例 #1
0
 private void Apply(BasketCheckedOut e)
 {
     Id              = e.AggregateRootId;
     Lines           = e.Lines.ToList();
     ShippingAddress = e.ShippingAddress;
 }
コード例 #2
0
ファイル: DomainEvents.cs プロジェクト: 7c78/eventshop
 public BasketCheckedOut(Guid aggregateRootId, IEnumerable <OrderLine> lines, ShippingAddress shippingAddress)
     : base(aggregateRootId)
 {
     Lines           = lines;
     ShippingAddress = shippingAddress;
 }
コード例 #3
0
ファイル: PendingBasket.cs プロジェクト: 7c78/eventshop
 internal CheckedOutBasket Checkout(ShippingAddress shippingAddress)
 {
     return(new CheckedOutBasket(GetSnapshot(), shippingAddress));
 }