コード例 #1
0
        public FilteredWords(IBoringWords boringWords, IWordsPreparer inputWords, int leftBound = 5, int rightBound = int.MaxValue)
        {
            this.boringWords = boringWords.GetBoringWords;
            words            = inputWords.GetPreparedWords();
            this.leftBound   = leftBound;
            this.rightBound  = rightBound;

            RemoveBoringWords();
            RemoveWordsOutOfLengthRange();
        }
コード例 #2
0
        public FilteredWords(IBoringWords boringWords, IWordsPreparer inputWords,
                             int leftBound = 5, int rightBound = int.MaxValue)
        {
            var boringWordsResult = boringWords.GetBoringWords;

            this.boringWords = boringWords.GetBoringWords
                               .GetValueOrThrow();
            var prepareWordsResult = inputWords.GetPreparedWords();

            words           = prepareWordsResult.GetValueOrThrow();
            this.leftBound  = leftBound;
            this.rightBound = rightBound;

            RemoveBoringWords();
            RemoveWordsOutOfLengthRange();
        }
コード例 #3
0
ファイル: TagsCloudVisualiser.cs プロジェクト: Az404/di
 public TagsCloudVisualiser(IWordsPreparer preparer, IWordsLayouter layouter, IImageRenderer renderer)
 {
     this.preparer = preparer;
     this.layouter = layouter;
     this.renderer = renderer;
 }