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

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

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