public void GetApplicationSettingTest() { 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/messaging/applicationSettings", ContentToSend = new StringContent(TestXmlStrings.ApplicationSettingsResponse, Encoding.UTF8, "application/xml") } })) { var client = Helper.CreateClient(); var r = SipPeer.GetApplicationSetting(siteId, sipPeerId).Result; if (server.Error != null) { throw server.Error; } Assert.IsNotNull(r.ApplicationsSettings); Assert.AreEqual("4a4ca6c1-156b-4fca-84e9-34e35e2afc32", r.ApplicationsSettings.HttpMessagingV2AppId); } }