예제 #1
0
 public void When_the_file_metadata_is_POSTed()
 {
     var newDocumentDetails = new Document("a new example document", "a description of the new example document");
     var apiCall = new JsonApiCall();
     apiCall.SetRequestAuthenticationMechanism(new OAuth2AuthenticationMechanism(Configuration.OAuth2Token));
     _response = apiCall.Post(Configuration.ExampleCreateDocUri, newDocumentDetails);
 }
예제 #2
0
 public void When_i_request_the_users_details()
 {
     var apiCall = new JsonApiCall();
     apiCall.SetRequestAuthenticationMechanism(new OAuth2AuthenticationMechanism(Configuration.OAuth2Token));
     _response = apiCall.Get(Configuration.GetTestUserUri);
 }