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