Пример #1
0
 public void ListWithDefaultClientTest()
 {
     using (var server = new HttpServer(new RequestHandler
     {
         EstimatedMethod = "GET",
         EstimatedPathAndQuery = string.Format("/v1.0/accounts/{0}/inserviceNumbers", Helper.AccountId),
         ContentToSend = new StringContent(TestXmlStrings.InServiceNumbers, Encoding.UTF8, "application/xml")
     }))
     {
         var result = InServiceNumber.List().Result;
         if (server.Error != null)
         {
             throw server.Error;
         }
         Assert.AreEqual(15, result.Length);
     }
 }
Пример #2
0
        static async Task <string[]> listNumbers(Client client)
        {
            string[] activeNumbers = await InServiceNumber.List(client);

            return(activeNumbers);
        }