internal BidCreated(BidAggregate x) : base(x) { Price = x.Root.Price; }
internal BidWithdrawn(BidAggregate x) : base(x) { Price = x.Root.Price; }
/// <summary> /// DomainEvents have <c>internal</c> constructors because they should /// only be constructed within the Domain project. Nothing outside /// the Domain should ever publish or create one. /// </summary> internal BidEvent(BidAggregate created) { Precondition.MustNotBeNull(created, nameof(created)); Id = created.Id; }