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

            // Act
            repository.Sum(e => e.Id,
                           (object)null);

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