MassTransit/MassTransit — Issue #96: TwoBusTestFixture initialization errors
Author: haf
Created: 2012-02-23 16:39:16+00:00
State: open

When configuring two buses with the TwoBusTestFixture, the test fixture should call receive on the two buses with an empty consumer, before letting the [Then]/[Test] methods run, because if the programmer depends on logic for the connection binding, and that logic takes some time, then it is possible that a send to an endpoint that is not existing yet.

For example, in [Given] for the subclass TestFixture:

Setup local bus
Setup remote bus

local bus.GetEndpoint(remote bus address).Send(...)

causes exception, because remote bus is not fully started yet.