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()