public void Can_I_Generate_Conference_With_Dial() { var response = new Response(); response.Dial(Dial.Create(PhoneNumberToDial).Conference("conference")); Assert.True(IsValidInboundXML(response.CreateXml())); }
public void Can_I_Generate_Dial_With_Sip() { var response = new Response(); response.Dial(Dial.Create(PhoneNumberToDial).Sip("sip-address")); Assert.True(IsValidInboundXML(response.CreateXml())); }
public void Can_I_Generate_Dial_With_Sip_With_Attributes() { var response = new Response(); response.Dial(Dial.Create(PhoneNumberToDial).Sip("sip-address", "123", null, HttpMethod.GET)); Assert.True(IsValidInboundXML(response.CreateXml())); }
public void Can_I_Generate_Dial_With_Number() { var response = new Response(); response.Dial(Dial.Create(PhoneNumberToDial).Number("123", "456", null, HttpMethod.POST)); Assert.True(IsValidInboundXML(response.CreateXml())); }
public void Can_I_Generate_Conference_With_Attributes_With_Dial() { var response = new Response(); response.Dial(Dial.Create(PhoneNumberToDial).Conference("conference", true, true, true, false, 10, null, HttpMethod.GET, null, null, null, null, null, null, false)); Assert.True(IsValidInboundXML(response.CreateXml())); }
public void Can_I_Generate_Dial_With_Attributes() { var response = new Response(); response.Dial(Dial.Create(PhoneNumberToDial, null, null, 10, null, null, null, false, null, null, null, true, null, true, null, null, null)); Assert.True(IsValidInboundXML(response.CreateXml())); }
public void Can_I_Generate_Dial_With_Options() { var response = new Response(); var options = new DialOptions(); options.Value = PhoneNumberToDial; options.Action = "http://www.action-url.com"; options.HangupOnStar = false; options.HideCallerId = true; options.Method = HttpMethod.GET; response.Dial(Dial.Create(options)); Assert.True(IsValidInboundXML(response.CreateXml())); }