public void GetOriginationSettingsTest() { 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/origination/settings", ContentToSend = new StringContent(TestXmlStrings.SipPeerOriginationSettingsResponse, Encoding.UTF8, "application/xml") } })) { var client = Helper.CreateClient(); var r = SipPeer.GetOriginationSettings(siteId, sipPeerId).Result; if (server.Error != null) { throw server.Error; } Assert.IsNotNull(r.SipPeerOriginationSettings); Assert.AreEqual("HTTP", r.SipPeerOriginationSettings.VoiceProtocol); Assert.AreEqual("469ebbac-4459-4d98-bc19-a038960e787f", r.SipPeerOriginationSettings.HttpSettings.HttpVoiceV2AppId); } }