Example #1
0
 internal BidCreated(BidAggregate x) : base(x)
 {
     Price = x.Root.Price;
 }
Example #2
0
 internal BidWithdrawn(BidAggregate x) : base(x)
 {
     Price = x.Root.Price;
 }
Example #3
0
 /// <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;
 }