public override async Task When(ITestHarnessBusFactory busFactory) { var bus = busFactory.Create(); var myEvent = new SomeEventWeDoNotHandle(); await bus.Publish(myEvent); }
protected override async Task When() { try { var myEvent = new SomeEventWeDoNotHandle(); await Bus.PublishAsync(myEvent); } catch (Exception exc) { _exception = exc; } }
protected override async Task When() { try { var myEvent = new SomeEventWeDoNotHandle(); await Bus.Publish(myEvent); } catch (Exception exc) { _exception = exc; } }
public override async Task When() { var myEvent = new SomeEventWeDoNotHandle(); await Bus.Publish(myEvent); }