Beispiel #1
0
 /// <summary>
 /// Adds the events.
 /// </summary>
 /// <param name="id">The id.</param>
 /// <param name="domainEvents">The domain events.</param>
 /// <returns></returns>
 public AggregateRoot <TEntity, TId> AddEvents(TId id, IEnumerable <IDomainEvent <TEntity> > domainEvents)
 {
     return(Factory.GetAndApplyEvents(id, domainEvents, (root, @event) => RefuseEngine.Refuse(root, @event)));
 }