public void When_UsingBlogDelegate_Should_PostToBlog() { Document doc = new Document(); doc.Text = "This is the Document's text"; var blogPoster = new BlogPoster(); var blogDelegate = new Document.SendDocument(blogPoster.PostBlog); Assert.AreEqual("Sending post", doc.SendAndReport(blogDelegate)); }
public static void AddToList(BlogPoster post) { BlogPostList.Add(post); }