Index() private method

private Index ( Twilio.Mvc.VoiceRequest request ) : ActionResult,
request Twilio.Mvc.VoiceRequest
return ActionResult,
Exemplo n.º 1
0
        public void TestSuccessfulWithoutAddons()
        {
            var controller = new VoiceController();
            var result     = controller.Index(new VoiceRequest(), null);

            Assert.IsFalse(result.Data.ToString().Contains("<Reject"));
        }
Exemplo n.º 2
0
        public void TestSuccessfulWithNomoRoboApiFailure()
        {
            var addOns     = File.ReadAllText("failed_nomorobo.json");
            var controller = new VoiceController();
            var result     = controller.Index(new VoiceRequest(), addOns);

            Assert.IsFalse(result.Data.ToString().Contains("<Reject"));
        }
Exemplo n.º 3
0
        public void TestBlockedWithWhitePages()
        {
            var addOns     = File.ReadAllText("spam_whitepages.json");
            var controller = new VoiceController();
            var result     = controller.Index(new VoiceRequest(), addOns);

            Assert.IsTrue(result.Data.ToString().Contains("<Reject"));
        }
Exemplo n.º 4
0
        public void TestSuccessfulWithMarchex()
        {
            var addOns     = File.ReadAllText("successful_marchex.json");
            var controller = new VoiceController();
            var result     = controller.Index(new VoiceRequest(), addOns);

            Assert.IsFalse(result.Data.ToString().Contains("<Reject"));
        }