示例#1
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);
            }
        }
示例#2
0
 public ManagerRanks(IRepositories repositories)
 {
     _repositories   = repositories;
     _calculatorRank = new CalculatorRank();
 }