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