public void Init()
 {
     if (!string.IsNullOrEmpty(Config.ApiKey))
     {
         client = new HelloSignClient(Config.ApiKey);
     }
     else
     {
         client = new HelloSignClient(Config.Username, Config.Password);
     }
 }
 public void Init()
 {
     if (!string.IsNullOrEmpty(Config.ApiKey))
     {
         client = new HelloSignClient(Config.ApiKey);
     }
     else if (!string.IsNullOrEmpty(Config.Username))
     {
         client = new HelloSignClient(Config.Username, Config.Password);
     }
     else
     {
         Assert.Fail("Config.Username or Config.ApiKey must be set to run test. Environment variables are suggested");
     }
 }
        public void Initialize()
        {
            eventTime = DateTimeOffset.Now.ToUnixTimeSeconds().ToString();
            eventHash1 = HelloSignUtilities.GenerateEventHash(Config.ApiKey, eventTime, "callback_test");
            eventHash2 = HelloSignUtilities.GenerateEventHash(Config.ApiKey, eventTime, "signature_request_sent");
            NoAssociatedModelJsonPayload = JObject.Parse(string.Format(NoAssociatedModelJsonPayloadFormat, eventTime, eventHash1, "testAccountId"));
            RequestAssociatedModelJsonPayload = JObject.Parse(string.Format(RequestAssociatedModelJsonPayloadFormat, eventTime, eventHash2, "testAccountId", Config.Username));

            if (!string.IsNullOrEmpty(Config.ApiKey))
            {
                client = new HelloSignClient(Config.ApiKey);
            }
            else if (!string.IsNullOrEmpty(Config.Username))
            {
                client = new HelloSignClient(Config.Username, Config.Password);
            }
            else
            {
                Assert.Fail("Config.Username or Config.ApiKey must be set to run test. Environment variables are suggested");
            }
        }