예제 #1
0
 public void UpdateData()
 {
     foreach (var message in _repositories.MessagesStore.Messages)
     {
         var separatingMessage = new SeparatingUserMessage();
         var searcher          = new Searcher(_repositories);
         separatingMessage.SeparateMessage(message.Message);
         searcher.Search(separatingMessage.Words, separatingMessage.PharseWords);
     }
 }
예제 #2
0
        public void CalculateRanks()
        {
            _calculatorRank = new CalculatorRank();

            foreach (var message in _repositories.MessagesStore.Messages)
            {
                var separatingMessage = new SeparatingUserMessage();
                var searcher          = new Searcher(_repositories);
                separatingMessage.SeparateMessage(message.Message);
                searcher.Search(separatingMessage.Words, separatingMessage.PharseWords);
                _calculatorRank.CalculateRankByMessage(searcher.FindedWords, searcher.FindedPhaseses);
            }
        }