public DeleteProvisionedPhoneNumber ( twilio.sugar.Model.PhoneNumber model ) : void | ||
model | twilio.sugar.Model.PhoneNumber | |
Результат | void |
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)); } }
public void DeleteProvisionedPhoneNumberWithValidPhoneObjectShouldReturnNullBody() { var account = new TwilioAccountMock(); var phoneAutomation = new PhoneAutomation(account); var phoneNumber = new PhoneNumber{ sid = "1", phone_number = "1" }; phoneAutomation.DeleteProvisionedPhoneNumber(phoneNumber); }