AG creation events testing

15 views
Skip to first unread message

o-range

unread,
Dec 26, 2011, 6:21:16 AM12/26/11
to ncqrs-dev
In AggregateRootTestFixture events come to PublishedEvents list in
EventApplied handler

{
AggregateRoot =
CreationStrategy.CreateAggregateRoot<TAggregateRoot>();
...
AggregateRoot.InitializeFromHistory(stream);
...
AggregateRoot.EventApplied += (s, e) =>
PublishedEvents.Add(e.Event);
When();
}

but how can I get AG creationEvents list if the event appear in
constructor when no EventApplied handlers registred?
Reply all
Reply to author
Forward
0 new messages