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