From 85aa5ff6c2ac8cac07a3e04ab654643dd120e00c Mon Sep 17 00:00:00 2001 From: Seth Cleaver Date: Tue, 1 Aug 2023 13:01:29 +1000 Subject: [PATCH] Fix build error with MediatR 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 8972409..35fbf1c 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 - DomainEventBase mediatorMock.Verify(m => m.Publish(It.IsAny(), It.IsAny()), Times.Once); + mediatorMock.Verify(m => m.Publish(It.IsAny(), It.IsAny()), Times.Once); entity.DomainEvents.Should().BeEmpty(); } }