コード例 #1
0
        public void DeleteSMSSettingTest()
        {
            string siteId    = "1";
            string sipPeerId = "test";

            using (var server = new HttpServer(new[]
            {
                new RequestHandler
                {
                    EstimatedMethod = "DELETE",
                    EstimatedPathAndQuery = $"/v1.0/accounts/{Helper.AccountId}/sites/{siteId}/sippeers/{sipPeerId}/products/messaging/features/sms",
                }
            }))
            {
                var client = Helper.CreateClient();
                SipPeer.DeleteSMSSettings(siteId, sipPeerId).Wait();
                if (server.Error != null)
                {
                    throw server.Error;
                }
            }
        }