From 0d2a4b31ad1f112d99e6484f6a0f64de69704c88 Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Mon, 31 Jul 2023 09:35:20 -0400 Subject: [PATCH] Fix failing unit test --- .../MediatRDomainEventDispatcherTests/DispatchAndClearEvents.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Ardalis.SharedKernel.UnitTests/MediatRDomainEventDispatcherTests/DispatchAndClearEvents.cs b/tests/Ardalis.SharedKernel.UnitTests/MediatRDomainEventDispatcherTests/DispatchAndClearEvents.cs index e8f2354..8972409 100644 --- a/tests/Ardalis.SharedKernel.UnitTests/MediatRDomainEventDispatcherTests/DispatchAndClearEvents.cs +++ b/tests/Ardalis.SharedKernel.UnitTests/MediatRDomainEventDispatcherTests/DispatchAndClearEvents.cs @@ -30,7 +30,7 @@ public async void CallsPublishAndClearDomainEvents() await domainEventDispatcher.DispatchAndClearEvents(new List { entity }); // Assert - mediatorMock.Verify(m => m.Publish(It.IsAny(), It.IsAny()), Times.Once); + DomainEventBase mediatorMock.Verify(m => m.Publish(It.IsAny(), It.IsAny()), Times.Once); entity.DomainEvents.Should().BeEmpty(); } }