public void GetFilesTest() { using (var server = new HttpServer(new RequestHandler { EstimatedMethod = "GET", EstimatedPathAndQuery = string.Format("/v1.0/accounts/{0}/portins/1/loas?metadata=true", Helper.AccountId), ContentToSend = new StringContent(TestXmlStrings.FileListResponse, Encoding.UTF8, "application/xml") })) { var client = Helper.CreateClient(); var portIn = new PortIn { Id = "1" }; portIn.SetClient(client); var list = portIn.GetFiles(true).Result; if (server.Error != null) { throw server.Error; } Assert.AreEqual(6, list.Length); Assert.AreEqual("d28b36f7-fa96-49eb-9556-a40fca49f7c6-1416231534986.txt", list[0].FileName); Assert.AreEqual("LOA", list[0].FileMetadata.DocumentType); } }