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