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

            // Act
            repository.Insert(new TraceEntity {
                Name = "Name"
            });

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