示例#1
0
 public void TestAddNewSeggestAnswer()
 {
     var a = new SearchTermBuilder();
     //var l = new ();
     var b = a.buildSearchTermsFromSeed("מה לקנות");
     Assert.IsTrue(b.Count>0);
 }
示例#2
0
文件: Form1.cs 项目: semlie/ads
        private void button1_Click(object sender, EventArgs e)
        {
            var googleSerch = new GoogleSearchParser();
            var youTube = new SearchYoutube();
            var searchTermBuilder = new SearchTermBuilder();
            var googleSuggest = new GoogleSuggest();

            var TemplateReader = new TemplateReader(textBoxContentFile.Text);
            var SnipetReader = new TemplateReader(textBoxSnipetFile.Text);
            var TitlesReader = new TemplateReader(textBoxTitleFile.Text);
            var CraditReader = new TemplateReader(textBoxCredit.Text);

            var postBuilder = new PostBuilder(textBoxURL.Text, textBoxUserName.Text, textBoxPassword.Text);

            var program = new ProgramFlow(textBoxSubject.Text, textBoxURL.Text, CraditReader,
                googleSerch, searchTermBuilder, SnipetReader, TitlesReader, googleSuggest,
                TemplateReader, postBuilder, youTube);
            program.run();
        }