public void ListWithDefaultClientTest()
 {
     using (var server = new HttpServer(new RequestHandler
     {
         EstimatedMethod = "GET",
         EstimatedPathAndQuery = string.Format("/v1.0/rateCenters?state=NC", Helper.AccountId),
         ContentToSend = new StringContent(TestXmlStrings.RateCentersResponse, Encoding.UTF8, "application/xml")
     }))
     {
         var result = RateCenter.List(new Dictionary <string, object>
         {
             { "state", "NC" }
         }).Result;
         if (server.Error != null)
         {
             throw server.Error;
         }
         Assert.AreEqual(3, result.Length);
         Assert.AreEqual("ACME", result[0].Abbreviation);
         Assert.AreEqual("ACME", result[0].Name);
         Assert.AreEqual("AHOSKIE", result[1].Abbreviation);
         Assert.AreEqual("AHOSKIE", result[1].Name);
         Assert.AreEqual("ALBEMARLE", result[2].Abbreviation);
         Assert.AreEqual("ALBEMARLE", result[2].Name);
     }
 }
        static async Task RateCentersDemo()
        {
            var query = new Dictionary <string, object>();

            query.Add("state", "CA");
            query.Add("available", true);
            var result = await RateCenter.List(_client, query);

            foreach (RateCenter rateCenter in result)
            {
                Console.WriteLine("RateCenter Name: {0}", rateCenter.Name);
            }
        }