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