Ejemplo n.º 1
0
        public void TestBaseRepositoryTraceForBeforeAverageAsync()
        {
            // Prepare
            var trace      = new Mock <ITrace>();
            var repository = new TraceEntityRepository(trace.Object);

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

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