public static void Test1()
        {
            FileSystemEmulatorHandler handler = new FileSystemEmulatorHandler
            {
                BaseAddress = new Uri("http://*****:*****@"c:\data\site",
                InnerHandler = new HttpClientHandler()
            };

            DateTime minDownloadTimeStamp = DateTime.Parse("2014-07-20");
            //DateTime minDownloadTimeStamp = DateTime.MinValue;

            StatsCountCollector collector = new StatsGreaterThanCountCollector(minDownloadTimeStamp);
            //StatsCountCollector collector = new StatsLessThanCountCollector(minDownloadTimeStamp);

            Uri index = new Uri("http://localhost:8000/stats/index.json");

            collector.Run(index, DateTime.MinValue, handler).Wait();

            Console.WriteLine("count = {0}", collector.Count);
        }
        public static void Test1()
        {
            Func<HttpMessageHandler> handlerFunc = () =>
            {
                return new FileSystemEmulatorHandler
                {
                    BaseAddress = new Uri("http://*****:*****@"c:\data\site",
                    InnerHandler = new HttpClientHandler()
                };
            };

            DateTime minDownloadTimeStamp = DateTime.Parse("2014-07-20");
            //DateTime minDownloadTimeStamp = DateTime.MinValue;

            StatsCountCollector collector = new StatsGreaterThanCountCollector(new Uri("http://localhost:8000/stats/index.json"), minDownloadTimeStamp, handlerFunc);
            //StatsCountCollector collector = new StatsLessThanCountCollector(new Uri("http://localhost:8000/stats/index.json"), minDownloadTimeStamp, handlerFunc);

            collector.Run(CancellationToken.None).Wait();

            Console.WriteLine("count = {0}", collector.Count);
        }