示例#1
0
        protected void VerifyRaisedEvents()
        {
            var expected  = ExpectedEvents();
            var aggregate = (IAggregate)Aggregate;
            var published = aggregate.GetUncommittedEvents().OfType <DomainEvent>();

            EventsExtensions.CompareEvents(expected.ToArray(), published.ToArray());
        }
示例#2
0
 protected void VerifyExpected()
 {
     EventsExtensions.CompareEvents(ExpectedEvents,
                                    ExecuteCommand());
 }