public void Init() { _client = new DropNetClient("", "", "", "");// all meaningful methods are shimmed, keys don't matter _clientPrefix = string.Format("{0} ({1})", "test", 123); using (ShimsContext.Create()) { DropNet.Fakes.ShimDropNetClient.AllInstances.AccountInfo = netClient => new AccountInfo { display_name = "test", uid = 123 }; _impl = new DropboxImplementation(new List <DropNetClient> { _client }); _info = new DokanFileInfo(1); } }
public void Clean() { _impl = null; }