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); } }
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); } }