Пример #1
0
        public void TestBaseRepositoryTraceForAfterMergeAllAsync()
        {
            // Prepare
            var trace      = new Mock <ITrace>();
            var repository = new TraceEntityRepository(trace.Object);

            // Act
            repository.MergeAllAsync(new[] { new TraceEntity {
                                                 Id = 1, Name = "Name"
                                             } }).Wait();

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