Ejemplo n.º 1
0
        protected void VerifyRaisedEvents()
        {
            var expected  = ExpectedEvents();
            var aggregate = (IAggregate)Aggregate;
            var published = aggregate.GetUncommittedEvents().OfType <DomainEvent>();

            EventsExtensions.CompareEvents(expected.ToArray(), published.ToArray());
        }
Ejemplo n.º 2
0
 protected void VerifyExpected()
 {
     EventsExtensions.CompareEvents(ExpectedEvents,
                                    ExecuteCommand());
 }