public void GetTerminationSettingsTest() { string siteId = "1"; string sipPeerId = "test"; using (var server = new HttpServer(new[] { new RequestHandler { EstimatedMethod = "GET", EstimatedPathAndQuery = $"/v1.0/accounts/{Helper.AccountId}/sites/{siteId}/sippeers/{sipPeerId}/products/termination/settings", ContentToSend = new StringContent(TestXmlStrings.SipPeerTerminationSettingResponse, Encoding.UTF8, "application/xml") } })) { var client = Helper.CreateClient(); var r = SipPeer.GetTerminationSetting(siteId, sipPeerId).Result; if (server.Error != null) { throw server.Error; } Assert.IsNotNull(r.SipPeerTerminationSettings); Assert.AreEqual("HTTP", r.SipPeerTerminationSettings.VoiceProtocol); Assert.AreEqual("469ebbac-4459-4d98-bc19-a038960e787f", r.SipPeerTerminationSettings.HttpSettings.HttpVoiceV2AppId); } }