public void ThreadPoolCallback(Object threadContext)
        {
            IProviderSearchService searchService;
            switch (SearchContext.Provider)
            {
                case ProviderEnum.Google:
                    searchService = new GoogleSearchService();
                    break;

                case ProviderEnum.Bing:
                    searchService = new BingSearchService();
                    break;

                case ProviderEnum.Yahoo:
                    searchService = new YahooSearchService();
                    break;

                case ProviderEnum.Twitter:
                    searchService = new TwitterSearchService();
                    break;

                case ProviderEnum.Flickr:
                    searchService = new FlickrSearchService();
                    break;

                default:
                    searchService = new BingSearchService();
                    break;

            }
            SearchResultList = searchService.Search(SearchContext);
            DoneEvent.Set();
        }
        public void TwitterSearchWorldRecord()
        {
            string query = "World Record";
            int page = 1;
            int count = 8;
            SearchContext searchContext = new SearchContext(SearchTypeEnum.Tweet, query, page, count);

            SearchResultList searchResultList = new TwitterSearchService().Search(searchContext);
            int result = searchResultList.Count();
            Assert.That(result > 0);
        }
        public void TwitterSearchInvalidCaracters()
        {
            string query = "??37.2";
            int page = 1;
            int count = 8;
            SearchContext searchContext = new SearchContext(SearchTypeEnum.Tweet, query, page, count);

            SearchResultList searchResultList = new TwitterSearchService().Search(searchContext);
            int result = searchResultList.Count();
            System.Console.WriteLine("result : " + result);
            Assert.That(result > 0);
        }