public void TestSuccessfulWithoutAddons() { var controller = new VoiceController(); var result = controller.Index(new VoiceRequest(), null); Assert.IsFalse(result.Data.ToString().Contains("<Reject")); }
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")); }
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")); }
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")); }