Skip to content

Commit

Permalink
Fix failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalis committed Jul 31, 2023
1 parent b5bb826 commit 0d2a4b3
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
mediatorMock.Verify(m => m.Publish(It.IsAny<TestDomainEvent>(), It.IsAny<CancellationToken>()), Times.Once);
DomainEventBase mediatorMock.Verify(m => m.Publish(It.IsAny<DomainEventBase>(), It.IsAny<CancellationToken>()), Times.Once);
entity.DomainEvents.Should().BeEmpty();
}
}

0 comments on commit 0d2a4b3

Please sign in to comment.