DeleteProvisionedPhoneNumber() public method

public DeleteProvisionedPhoneNumber ( twilio.sugar.Model.PhoneNumber model ) : void
model twilio.sugar.Model.PhoneNumber
return void
コード例 #1
0
        public void DeleteProvisionedPhoneNumberWithNullObjectShouldReturnArgumentNullException()
        {
            try
            {
                var account = new TwilioAccountMock();
                var phoneAutomation = new PhoneAutomation(account);

                phoneAutomation.DeleteProvisionedPhoneNumber(null);
            }
            catch (System.Exception ex)
            {
                Assert.IsInstanceOfType(ex, typeof(System.ArgumentNullException));
            }
        }
コード例 #2
0
        public void DeleteProvisionedPhoneNumberWithValidPhoneObjectShouldReturnNullBody()
        {
            var account = new TwilioAccountMock();
            var phoneAutomation = new PhoneAutomation(account);

            var phoneNumber = new PhoneNumber{
                sid = "1", phone_number = "1"
            };
            phoneAutomation.DeleteProvisionedPhoneNumber(phoneNumber);
        }