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