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); } }
public ManagerRanks(IRepositories repositories) { _repositories = repositories; _calculatorRank = new CalculatorRank(); }