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

            // Act
            repository.InsertAll(new[] { new TraceEntity {
                                             Name = "Name"
                                         } });

            // Assert
            trace.Verify(t => t.AfterInsertAll(It.IsAny <TraceLog>()), Times.Exactly(1));
        }