bizmonger / Nikeza

Platform for associating content to their providers.
24 stars 5 forks source link

Swap out delegates for emitted events on all viewmodels #218

Open bizmonger opened 6 years ago

bizmonger commented 6 years ago

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.