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

            // Act
            repository.QueryAll();

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