Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Unit Test for MediatRDomainEventDispatcher #2

Merged
merged 1 commit into from
Aug 1, 2023

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