示例#1
0
        public ConsoleApp(CommandLineArgs arguments, Config configuration, IFileParser fileParser, IDrawer drawer, 
			IWordPreparer wordPreparer, ISaver imageSaver)
        {
            _args = arguments;
            _config = configuration;
            _parser = fileParser;
            _drawer = drawer;
            _wordPreparer = wordPreparer;
            _imageSaver = imageSaver;
        }
示例#2
0
 public static Result <IEnumerable <string> > PrepareWords(
     this IWordPreparer preparer,
     IEnumerable <string> words,
     TagCloudCreationOptions options)
 {
     return(words.Select(word => preparer.PrepareWord(word, options)
                         .Then(w => w.Unwrap("")))
            .AsResult()
            .Then(i => i.Where(w => w != "")));
 }