2017-05-03 10:59:36 +02:00
|
|
|
|
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace EventBus.Tests
|
|
|
|
|
{
|
2018-07-21 18:00:05 +08:00
|
|
|
|
public class TestIntegrationEventHandler : IIntegrationEventHandler<TestIntegrationEvent>
|
2017-05-03 10:59:36 +02:00
|
|
|
|
{
|
|
|
|
|
public bool Handled { get; private set; }
|
|
|
|
|
|
2018-07-21 18:00:05 +08:00
|
|
|
|
public TestIntegrationEventHandler()
|
2017-05-03 10:59:36 +02:00
|
|
|
|
{
|
|
|
|
|
Handled = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public async Task Handle(TestIntegrationEvent @event)
|
|
|
|
|
{
|
|
|
|
|
Handled = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|