Skip to content

Commit

Permalink
Merge pull request #2 from scleaver/bugfix/mediatr-unit-test
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalis committed Aug 1, 2023
2 parents 0d2a4b3 + 85aa5ff commit 3a7b4db
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 3a7b4db

Please sign in to comment.