public WordsFrequencyViewModel(ISentenceAnalyzerService sentenceAnalyzer)
        {
            if (sentenceAnalyzer == null)
            {
                throw new ArgumentNullException(nameof(sentenceAnalyzer));
            }

            WordsCount = new WordCount[0];
            _sentenceAnalyzer = sentenceAnalyzer;

            CalculateWordsCommand = new DelegateCommand(OnCalculateWords, OnCanExecuteCalculateWords);
            PropertyChanged += OnViewModelPropertyChanged;
        }
 public SentenceAnalyzerController(ISentenceAnalyzerService sentenceAnalyzer) =>