public static string LogRelatedArticlesInfo(IPayrollArticle article) { var articles = article.RelatedArticles(); string lineDefinition = ArticlesRelatedListLogger.LogArrayOfArticles(articles); return(lineDefinition); }
public void LogListArticlesUnderArticle(IPayrollArticle article, IPayrollArticle[] articles, string testName) { OpenLogStream(testName); using (StreamWriter logWriter = new StreamWriter(LogFileStream)) { //logWriter.WriteLine ("\n--- begin ---"); string lineDefinition = ArticlesRelatedListLogger.LogArticleListInfo(article, articles); logWriter.WriteLine(lineDefinition); //logWriter.WriteLine ("--- end ---"); } }