Example #1
0
        public void TestBaseRepositoryTraceForAfterBatchQuery()
        {
            // Prepare
            var trace      = new Mock <ITrace>();
            var repository = new TraceEntityRepository(trace.Object);

            // Act
            repository.BatchQuery(0,
                                  10,
                                  OrderField.Parse(new { Id = Order.Ascending }),
                                  (object)null);

            // Assert
            trace.Verify(t => t.AfterBatchQuery(It.IsAny <TraceLog>()), Times.Once);
        }