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
{{ message }}
This repository was archived by the owner on Nov 29, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 29, 2021. It is now read-only.
I have automated tests, one of which checks what happens in my code if I can't make a connection to Dropbox. To do that, I added a method to Dropnet that lets me override the ApiBaseUrl to something bogus (like "http://192.168.66.66/boo/nonny").
To do that, I have to alter Dropnet. It would be nice if out of the box there was some way to change the ApiBaseUrl, or in some other way force a connection error.
Could you create a class that inherits the DropNet class as overrides the urls with that?
Not too sure I like the idea of having "test only" properties.
Activity
mhenry1384 commentedon Dec 10, 2012
Here's my code in DropNetClient
dkarzon commentedon Dec 10, 2012
Could you create a class that inherits the DropNet class as overrides the urls with that?
Not too sure I like the idea of having "test only" properties.
mhenry1384 commentedon Dec 10, 2012
I could if DropNetClient's _restClient and _restClientContent were protected instead of private.
mhenry1384 commentedon Dec 12, 2012
ApiBaseUrl should also be protected so it can be overridden when it's used by DropNetClient.GetTokenAsync().