public void TestBaseRepositoryTraceForAfterQueryAllAsync() { // Prepare var trace = new Mock <ITrace>(); var repository = new TraceEntityRepository(trace.Object); // Act repository.QueryAllAsync(); // Assert trace.Verify(t => t.AfterQueryAll(It.IsAny <TraceLog>()), Times.Once); }