public async Task ClearUncommittedEventsFromAggregate(IAggregateRoot <TestAggregate> aggregateRoot, EventStoreRepository sut) { await sut.SaveAsync(aggregateRoot); aggregateRoot.Received(1).ClearUncommittedEvents(); }