From 4f1cf116da898b65e638ef0f8083c5aebd1c9792 Mon Sep 17 00:00:00 2001 From: Kamil Grzybek Date: Sun, 15 Nov 2020 00:49:26 +0100 Subject: [PATCH] EventsBusMock fix --- .../Tests/IntegrationTests/SeedWork/EventsBusMock.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Modules/Payments/Tests/IntegrationTests/SeedWork/EventsBusMock.cs b/src/Modules/Payments/Tests/IntegrationTests/SeedWork/EventsBusMock.cs index 553728e7..826bcaad 100644 --- a/src/Modules/Payments/Tests/IntegrationTests/SeedWork/EventsBusMock.cs +++ b/src/Modules/Payments/Tests/IntegrationTests/SeedWork/EventsBusMock.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.Linq; +using System.Threading.Tasks; using CompanyName.MyMeetings.BuildingBlocks.Infrastructure.EventBus; namespace CompanyName.MyMeetings.Modules.Payments.IntegrationTests.SeedWork @@ -17,10 +18,12 @@ public void Dispose() { } - public void Publish(T @event) + public Task Publish(T @event) where T : IntegrationEvent { _publishedEvents.Add(@event); + + return Task.CompletedTask; } public T GetLastPublishedEvent()