You Don't Hate Mocks; You Hate Side Effects

Hey

Are you planning to elaborate more on “replace the effect with an event” ?
I am just curious how exactly you are subscribing to events ? Do you rely on passing event-handler simply as a method/function parameter or do you use sth more sophisticated, like SUT simply emits “userCreated” event (possible with some payload) and somewhere else in the system you have a registry that keeps all subscriptions and it knows which event handler to execute - IMHO the latter looks nice but this kind of indirection is sometimes really hard to track in a code…