コード例 #1
0
ファイル: AssemblySetup.cs プロジェクト: divyang4481/abot-1
        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");
 }