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