示例#1
0
 public void ApiConnector_Constructor_WithDelegate_Succeeds()
 {
     var connector = new ApiConnector(GetAccessToken);
 }
示例#2
0
 public void ApiConnector_Constructor_WithoutDelegate_Fails()
 {
     var connector = new ApiConnector(null);
 }
示例#3
0
 public void DoGetRequest_WithWrongDivisionNumber_ThrowsException()
 {
     const string endpoint = "https://start.exactonline.nl/api/v1/999/crm/Accounts";
     var connector = new ApiConnector(_toc.GetOAuthAuthenticationToken);
     connector.DoGetRequest(endpoint, string.Empty);
 }