Swap out delegates for emitted events on all viewmodels.
Then inject an EventProcessor to handle the events.
Currently, I publish an event using a delegate after executing a workflow.
Instead, I should maintain a list of emitted events on each of my viewmodels.
My unit tests can then reference the event lists on my viewmodel and use that for verification instead.
Thus, this approach would be more functional than it is currently object-oriented.
Swap out delegates for emitted events on all viewmodels. Then inject an EventProcessor to handle the events.
Currently, I publish an event using a delegate after executing a workflow. Instead, I should maintain a list of emitted events on each of my viewmodels. My unit tests can then reference the event lists on my viewmodel and use that for verification instead. Thus, this approach would be more functional than it is currently object-oriented.