Example #1
0
        static void Main(string[] args)
        {
            var test = new SchedulerTest();

            log4net.Config.XmlConfigurator.Configure();
            Log.Start();

            Log.Write("TestScheduling", "Starting Scheduling Test", LogMessageType.Debug);

            //--------------------------------
            // Workflow Test
            //-------------------------------
            //test.TestWorkflowServices(false);

            //--------------------------------
            // Full Instegration Test
            //-------------------------------
            //test.TestFullIntegration(false);

            //--------------------------------
            // Stress Test
            //-------------------------------
            //test.StressTest(false);

            //--------------------------------
            // Google Adwords Test
            //-------------------------------
            test.TestGoogleAdwords(false);

            Log.Write("TestScheduling", "Started Scheduling Test", LogMessageType.Debug);

            do
            {
            } while (Console.ReadLine() != "exit");
        }
Example #2
0
        public void Start()
        {
            var scheduler = new SchedulerTest();
            var context   = new SpiderContext("https://www.baidu.com/", "");
            var spider    = new SpiderOperater(scheduler, "обть╡Бйт", context);

            spider.Start();
            Assert.AreEqual(true, context.Result.Succeeded);
        }