상속: TJ.CQRS.Event.DomainEventBase
예제 #1
0
 public void Setup()
 {
     _aggregate = new StubAggregate();
     var aggregateId = Guid.NewGuid();
     var events = new List<IDomainEvent>();
     for (int i = 0; i < 5; i++)
     {
         var validEvent = new ValidEvent(aggregateId);
         validEvent.EventNumber = i;
         events.Add(validEvent);
     }
     _aggregate.LoadAggregate(events);
 }
예제 #2
0
 private void OkAction(ValidEvent obj)
 {
     _eventsTriggered.Add(obj);
 }