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

            // Act
            repository.Truncate();

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