public void TestBaseRepositoryTraceForAfterUpdateAll() { // Prepare var trace = new Mock <ITrace>(); var repository = new TraceEntityRepository(trace.Object); // Act repository.UpdateAll(new[] { new TraceEntity { Id = 1, Name = "Name" } }); // Assert trace.Verify(t => t.AfterUpdateAll(It.IsAny <TraceLog>()), Times.Once); }