public async Task TypeBasedRoutingAndExtensionMethodsAndEverythingWorksAsItShouldAlsoWhenTypeIsNotInferred() { await _client1.Bus.Subscribe<SomeKindOfEvent>(); await Task.Delay(500); object someKindOfEvent = new SomeKindOfEvent(); await _publisher.Bus.Publish(someKindOfEvent); _client1GotTheEvent.WaitOrDie(TimeSpan.FromSeconds(2), "Looks like the publish topic was not correctly inferred!"); }
public async Task TypeBasedRoutingAndExtensionMethodsAndEverythingWorksAsItShouldAlsoWhenTypeIsNotInferred() { await _client1.Bus.Subscribe <SomeKindOfEvent>(); await Task.Delay(500); object someKindOfEvent = new SomeKindOfEvent(); await _publisher.Bus.Publish(someKindOfEvent); _client1GotTheEvent.WaitOrDie(TimeSpan.FromSeconds(2), "Looks like the publish topic was not correctly inferred!"); }