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