예제 #1
0
파일: UnitTest2.cs 프로젝트: semlie/ads
 public void TestAddPost()
 {
     var a = new PostBuilder();
     var b = a.addPage();
     Assert.IsNotNull(b);
     var c = a.addPost();
     Assert.IsNotNull(c);
 }
예제 #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();
        }