コード例 #1
0
 public void Setup()
 {
     dropbox = new DropboxTemplate("CONSUMER_KEY", "CONSUMER_SECRET", "ACCESS_TOKEN", "ACCESS_TOKEN_SECRET", AccessLevel.AppFolder);
     mockServer = MockRestServiceServer.CreateServer(dropbox.RestTemplate);
     responseHeaders = new HttpHeaders();
     responseHeaders.ContentType = MediaType.APPLICATION_JSON;
 }
コード例 #2
0
 public void IsAuthorizedForUser()
 {
     DropboxTemplate dropbox = new DropboxTemplate("API_KEY", "API_SECRET", "ACCESS_TOKEN", "ACCESS_TOKEN_SECRET", AccessLevel.Full);
     Assert.IsTrue(dropbox.IsAuthorized);
 }