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

            // Act
            repository.CountAsync((object)null).Wait();

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