static void WriteArticles(ArticleWriter writer) { Director director = new Director(writer); director.WriteFullArticle(); writer.GetArticle().Print(); director.WriteEmptyArticle(); writer.GetArticle().Print(); director.WriteUntitledArticle(); writer.GetArticle().Print(); }
public Director(ArticleWriter writer) { this.writer = writer; }