public void MoveTnsTest() { using (var server = new HttpServer(new RequestHandler { EstimatedMethod = "POST", EstimatedPathAndQuery = string.Format("/v1.0/accounts/{0}/sites/1/sippeers/10/movetns", Helper.AccountId), EstimatedContent = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<SipPeerTelephoneNumbers>\r\n <FullNumber>111</FullNumber>\r\n <FullNumber>222</FullNumber>\r\n</SipPeerTelephoneNumbers>" })) { var client = Helper.CreateClient(); var peer = new SipPeer { Id = "10", SiteId = "1" }; peer.SetClient(client); peer.MoveTns("111", "222").Wait(); if (server.Error != null) { throw server.Error; } } }