public void GetSessionId_ShouldReturnSessionId_GivenValidAccessToken() { DropboxGateway gateway = new DropboxGateway(_accessToken); string sessionId = gateway.GetSessionId(); Assert.IsNotNull(sessionId); }
public void Upload() { DropboxGateway gateway = new DropboxGateway(_accessToken); byte[] bytes = Encoding.ASCII.GetBytes("Hello World"); gateway.Upload("hello_world.txt", bytes.Length, bytes); }