upta / pubsub

An extremely light-weight, easy to use PCL pub/sub library
Apache License 2.0
219 stars 53 forks source link

Consider adding an IHub interface #35

Open Ninho67 opened 4 years ago

Ninho67 commented 4 years ago

I love the initiative of having a lightweight, simple pubsub library. However, I would only use if it saves me from testing the whole publishing feature in my application.

If I had to wrap your lib in a component of my system, I wouldn't be able to mock your Hub component in my unit tests. In other words, I'd need to test the entire feature once again (and duplicate your unit tests ...).

Could you add an IHub to your project and save me the trouble ? (or make the public methods virtual at least)

Thanks, Cem