示例#1
0
        // ++++++++++++++++++++++ Background Worker Functions +++++++++++++++++++++

        #region Scrape Testing and Development

        private void TestAdditionalInfo()
        {
            // Test function to get additional info for a single office

            var candidate = new Candidate
            {
                NameId       = "11068",
                FilerId      = "C2018001171",
                OfficeTypeId = "130",
                OfficeName   = "Madison Fain Barton"
            };

            backgroundWorkerScrape.ReportProgress(1, "Begin TestAdditionalInfo : " + Environment.NewLine);

            if (!AdditionalInfo.ReadThePage(candidate))
            {
                backgroundWorkerScrape.ReportProgress(1, AdditionalInfo.AddInfoStatus.LastOpMessage);
                return;
            }

            backgroundWorkerScrape.ReportProgress(2, AdditionalInfo.AddInfoStatus.LastOpMessage + Environment.NewLine);
        }