You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had some difficulties while working with SDK in unit tests. It should be nice to provide interfaces for clients and make it easier do mock them.
For example I have a class with a BlobContainerClient dependency and like this class is final it is hard to mock it during unit tests.
My suggestion would be make it implements any interface that we could mock in tests.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I had some difficulties while working with SDK in unit tests. It should be nice to provide interfaces for clients and make it easier do mock them.
For example I have a class with a BlobContainerClient dependency and like this class is final it is hard to mock it during unit tests.
My suggestion would be make it implements any interface that we could mock in tests.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions