public async Task TestGetEspAccountsWithoutParametersAsync()
        {
            Trace.WriteLine("GET /esp_accounts");

            // Make the API call
            try
            {
                var espAccounts = await EspAccount.GetAccountsAsync();

                // Validate the response
                SendwithusClientTest.ValidateResponse(espAccounts);
            }
            catch (AggregateException exception)
            {
                Assert.Fail(exception.ToString());
            }
        }
        public async Task TestGetEspAccountsWithInvalidParameterAsync()
        {
            Trace.WriteLine("GET /esp_accounts");

            // Build the query parameters
            var queryParameters = new Dictionary <string, object>();

            queryParameters.Add("esp_type", INVALID_ESP_ACCOUNT_TYPE);

            // Make the API call
            try
            {
                var response = await EspAccount.GetAccountsAsync(queryParameters);

                Assert.Fail("Failed to throw exception");
            }
            catch (AggregateException exception)
            {
                // Make sure the response was HTTP 400 Bad Request
                SendwithusClientTest.ValidateException(exception, HttpStatusCode.BadRequest);
            }
        }
        public async Task TestGetEspAccountsWithAllParametersAsync()
        {
            Trace.WriteLine("GET /esp_accounts");

            // Build the query parameters
            var queryParameters = new Dictionary <string, object>();

            queryParameters.Add("esp_type", DEFAULT_ESP_ACCOUNT_TYPE);

            // Make the API call
            try
            {
                var espAccounts = await EspAccount.GetAccountsAsync(queryParameters);

                // Validate the response
                SendwithusClientTest.ValidateResponse(espAccounts);
            }
            catch (AggregateException exception)
            {
                Assert.Fail(exception.ToString());
            }
        }