public void AllAppliedEventsAreExecuted()
{
TestAggregateRoot aggregateRoot = new TestAggregateRoot(Guid.NewGuid());
var domainEvent1 = ApplyNewEvent(aggregateRoot);
var domainEvent2 = ApplyNewEvent(aggregateRoot);
sut.ApplyChangesAsync(aggregateRoot).Wait();
Assert.AreEqual(2, sut.EventBroker.ExecutedEvents.Count);
Assert.IsTrue(sut.EventBroker.ExecutedEvents.Contains(domainEvent1));
Assert.IsTrue(sut.EventBroker.ExecutedEvents.Contains(domainEvent2));
}