Skip to content

Commit

Permalink
Fix build error with MediatR unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
scleaver committed Aug 1, 2023
1 parent 0d2a4b3 commit 85aa5ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public async void CallsPublishAndClearDomainEvents()
await domainEventDispatcher.DispatchAndClearEvents(new List<EntityBase> { entity });

// Assert
DomainEventBase mediatorMock.Verify(m => m.Publish(It.IsAny<DomainEventBase>(), It.IsAny<CancellationToken>()), Times.Once);
mediatorMock.Verify(m => m.Publish(It.IsAny<DomainEventBase>(), It.IsAny<CancellationToken>()), Times.Once);
entity.DomainEvents.Should().BeEmpty();
}
}

0 comments on commit 85aa5ff

Please sign in to comment.