Replies: 1 comment 10 replies
-
The interfaces are indeed gone in the next version so keep the API small. If you still want to replace the client etc. for mocking I recommend to add the interface on your own. Then you need to encapsulate the MQTT client in your custom wrapper. I will remove this information from the readme soon. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was using
IMqttClient
fromv4-preview1
to create a MockMqttClient for unit tests.With the latest
v4-preview5
the IMqttClient has been replaced bysealed class MqttClient
, so I'm not able to create Mocks anymore, although in the README I still read:Interfaces included for mocking and testing
Can you consider removing the
sealed
limitation? Any other suggestion?Beta Was this translation helpful? Give feedback.
All reactions