public void TestBaseRepositoryTraceForAfterExists() { // Prepare var trace = new Mock <ITrace>(); var repository = new TraceEntityRepository(trace.Object); // Act repository.Exists((object)null); // Assert trace.Verify(t => t.AfterExists(It.IsAny <TraceLog>()), Times.Once); }