From d2199bc2d704526d47d1e63947f209c3f32055ba Mon Sep 17 00:00:00 2001 From: ocm-tompit Date: Thu, 29 Dec 2022 11:18:34 +0100 Subject: [PATCH] Update IEventService functions because of breaking changes --- tests/Connected.Common.Types.Tests/TestUtils.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Connected.Common.Types.Tests/TestUtils.cs b/tests/Connected.Common.Types.Tests/TestUtils.cs index 6a8f490..9a7613b 100644 --- a/tests/Connected.Common.Types.Tests/TestUtils.cs +++ b/tests/Connected.Common.Types.Tests/TestUtils.cs @@ -1,5 +1,6 @@ using Connected; using Connected.Notifications.Events; +using Connected.ServiceModel; using Connected.Services; using Moq; @@ -58,17 +59,17 @@ internal static class TestUtils public static Moq.Language.Flow.ISetup SetupEvent(this Moq.Language.ISetupConditionResult setup, string @event) { - return setup.Setup(e => e.Enqueue(It.IsAny(), @event, It.IsAny())); + return setup.Setup(e => e.Enqueue(It.IsAny(), It.IsAny(), @event, It.IsAny())); } public static Moq.Language.Flow.ISetup SetupEvent(this Mock setup, string @event) { - return setup.Setup(e => e.Enqueue(It.IsAny(), @event, It.IsAny())); + return setup.Setup(e => e.Enqueue(It.IsAny(), It.IsAny(), @event, It.IsAny())); } public static void VerifyEvent(this Mock setup, string @event) { - setup.Verify(e => e.Enqueue(It.IsAny(), @event, It.IsAny()), Times.Exactly(1)); + setup.Verify(e => e.Enqueue(It.IsAny(), It.IsAny(), @event, It.IsAny()), Times.Exactly(1)); } public static void SetupIEnumerable(this Mock mock, IEnumerable data)