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