I have some message consumers that take dependencies through the constructor, and I would like to cover them in unit tests. Does MassTransit's test harness provide a way to register consumers with constructor parameters?
You can specify a factory method, or a consumer factory, when creating a consumer test harness.
harness.Consumer<T>(() => new T());
You can find the three standard extension methods in the code:
UPDATE: MassTransit now has container support for the test harness