public string ListPatterns(IEnumerable<Pattern> patterns) { var adapter = new PatternCollectionDbAdapter(patterns); _dataRenderer = new DataRenderer(adapter); var writer = new StringWriter(); _dataRenderer.Render(writer); return writer.ToString(); }
public string ListPatterns(IEnumerable <Pattern> patterns) { var adapter = new PatternCollectionDbAdapter(patterns); dataRenderer = new DataRenderer(adapter); var writer = new StringWriter(); dataRenderer.Render(writer); return(writer.ToString()); }