Ejemplo n.º 1
0
 /// <summary>
 /// Creates the news article
 /// </summary>
 /// <param name="builder">The news builder implementation, e.g. Rss or Html builder</param>
 /// <param name="headLine">The head line</param>
 /// <param name="text">The text of the news</param>
 /// <returns>The complete news article as a simple text</returns>
 public string Construct(INewsBuilder builder, string headLine, string text)
 {
     builder.BuildHeadLine(headLine);
     builder.BuildText(text);
     builder.BuildAuthor();
     return builder.GetNews();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates the news article
 /// </summary>
 /// <param name="builder">The news builder implementation, e.g. Rss or Html builder</param>
 /// <param name="headLine">The head line</param>
 /// <param name="text">The text of the news</param>
 /// <returns>The complete news article as a simple text</returns>
 public string Construct(INewsBuilder builder, string headLine, string text)
 {
     builder.BuildHeadLine(headLine);
     builder.BuildText(text);
     builder.BuildAuthor();
     return(builder.GetNews());
 }