示例#1
0
        public void Setup()
        {
            XmlConfigurator.Configure();

            FiddlerProxyUtil.StartAutoRespond(@"..\..\..\TestResponses.saz");
            Console.WriteLine("Started FiddlerCore to autorespond with pre recorded http responses.");
        }
示例#2
0
        public void Setup()
        {
            XmlConfigurator.Configure();

            string pathToFiddlerResponseArchive = Path.GetFullPath(Path.Combine(TestContext.CurrentContext.TestDirectory, @"..\..\..\", "TestResponses.saz"));

            if (!File.Exists(pathToFiddlerResponseArchive))
            {
                throw new InvalidOperationException("Cannot find fiddler response archive needed to run tests at " + pathToFiddlerResponseArchive);
            }

            FiddlerProxyUtil.StartAutoRespond(pathToFiddlerResponseArchive);
            Console.WriteLine("Started FiddlerCore to autorespond with pre recorded http responses.");
        }
示例#3
0
 public void After()
 {
     FiddlerProxyUtil.StopAutoResponding();
     Console.WriteLine("Stopped FiddlerCore");
 }