Skip to content

Commit

Permalink
EventsBusMock fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kgrzybek committed Nov 14, 2020
1 parent 8e8b76e commit 4f1cf11
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -17,10 +18,12 @@ public void Dispose()
{
}

public void Publish<T>(T @event)
public Task Publish<T>(T @event)
where T : IntegrationEvent
{
_publishedEvents.Add(@event);

return Task.CompletedTask;
}

public T GetLastPublishedEvent<T>()
Expand Down

0 comments on commit 4f1cf11

Please sign in to comment.