public void TestBaseRepositoryTraceForAfterAverageAllAsync() { // Prepare var trace = new Mock <ITrace>(); var repository = new TraceEntityRepository(trace.Object); // Act repository.AverageAllAsync(e => e.Id).Wait(); // Assert trace.Verify(t => t.AfterAverageAll(It.IsAny <TraceLog>()), Times.Once); }