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); }
private void OkAction(ValidEvent obj) { _eventsTriggered.Add(obj); }