Beispiel #1
0
        public void Can_I_Generate_Record()
        {
            var response = new Response();
            response.Record("http://www.action-url.com");

            Assert.True(IsValidInboundXML(response.CreateXml()));
        }
Beispiel #2
0
        public void Can_I_Generate_Record_With_Attributes()
        {
            var response = new Response();
            response.Record("http://www.action-url.com", null,
                10, "*", 10, true, 
                null, false, false, null);

            Assert.True(IsValidInboundXML(response.CreateXml()));
        }
Beispiel #3
0
        public void Can_I_Generate_Record_With_Options()
        {
            var response = new Response();
            var options = new RecordOptions();

            options.FileFormat = RecordingFileFormat.wav;
            options.FinishOnKey = "*";
            options.Timeout = 10;

            response.Record(options);

            Assert.True(IsValidInboundXML(response.CreateXml()));
        }