public void Example_2() { var response = new TwilioResponse(); response.Reject("busy"); Assert.True(IsValidTwiML(response.ToXDocument())); }
public void Can_Generate_Reject_With_Reason() { var response = new TwilioResponse(); response.Reject("busy"); Assert.IsTrue(IsValidTwiML(response.ToXDocument())); }
public void Can_Generate_Empty_Reject() { var response = new TwilioResponse(); response.Reject(); Assert.IsTrue(IsValidTwiML(response.ToXDocument())); }
public HttpResponseMessage Post(SmsRequest request) { var response = new TwilioResponse(); if (request.From == MyCell) { if (request.Body.ToLower().StartsWith("+1")) { response.Sms(request.Body.Substring(12), new { to = request.Body.Substring(0, 12), from = ThisNumber }); } response.Reject("invalid command"); } else { response.Sms(request.From + ": " + request.Body, new { to = MyCell, from = ThisNumber }); } return(TWiML(response)); }
public void Can_Generate_Reject_With_Reason() { var response = new TwilioResponse(); response.Reject("busy"); Assert.IsTrue(IsValidTwiML(response.ToXDocument())); }
public void Can_Generate_Empty_Reject() { var response = new TwilioResponse(); response.Reject(); Assert.IsTrue(IsValidTwiML(response.ToXDocument())); }
public void Example_1() { var response = new TwilioResponse(); response.Reject(); Assert.IsTrue(IsValidTwiML(response.ToXDocument())); }