Read Part 1: MediatR vs MassTransit Mediator - Differences
The MassTransit Mediator implementation is more powerful than MediatR implementation, but also more complicate to use. Unit Testing a MassTransit Consumer is not a nice experience.
In this article I will propose some techniques to simplify the MassTransit Consumer and to make them look as straight forward as a MediatR handler.
We will study a very common use case (the most common use case which I can think of):