Пример #1
0
 public void TestAddPost()
 {
     var a = new PostBuilder();
     var b = a.addPage();
     Assert.IsNotNull(b);
     var c = a.addPost();
     Assert.IsNotNull(c);
 }
Пример #2
0
        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();
        }