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

            // Act
            repository.CountAllAsync().Wait();

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