public void TestBaseRepositoryTraceForAfterBatchQueryAsync() { // Prepare var trace = new Mock <ITrace>(); var repository = new TraceEntityRepository(trace.Object); // Act repository.BatchQueryAsync(0, 10, OrderField.Parse(new { Id = Order.Ascending }), (object)null).Wait(); // Assert trace.Verify(t => t.AfterBatchQuery(It.IsAny <TraceLog>()), Times.Once); }