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