public void Can_Create_HelloSignClient_with_Config()
        {
            var exampleConfig = new HelloSignConfig("Example-of-Api-Key", "http://path/to/api/endpoing", 123456);
            var apiClient = new HelloSignClient(exampleConfig);

            Assert.NotNull(apiClient.Config);
        }
Esempio n. 2
0
 public HelloSignClient(HttpClient httpClient, HelloSignConfig config = null)
 {
     _httpClient = httpClient;
     Config = config ?? new HelloSignConfig("UNKNOWN-HELLOSIGN-API-KEY");
 }
Esempio n. 3
0
 public HelloSignClient(HelloSignConfig config)
 {
     Config = config;
     _httpClient = FrameworkHelper.CreateBasicAuthHttpClient(Config.ApiKey, "");
     _httpClient.Timeout = new TimeSpan(0, 0, 0, 0, config.ApiTimeoutMiliseconds);
 }