Skip to content

Conversation

scleaver
Copy link
Contributor

@scleaver scleaver commented Aug 1, 2023

This pull request addresses an issue with the unit test for the MediatRDomainEventDispatcher class in the SharedKernel project. The test was failing due to an incorrect setup of the mocked IMediator object.

The changes in this pull request ensure that the Publish method on the IMediator mock object is set up and verified correctly. This allows the test to correctly check that the Publish method is called for each domain event in an entity when the DispatchAndClearEvents method is invoked.

@ardalis ardalis merged commit 3a7b4db into ardalis:main Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants