public IEnumerable <AuthorMessagesViewModel> GetAuthorMessagesWithSentimentFromCsv(string fullFilePath) { // read csv var retroBoardCsvProvider = new RetroBoardCsvProvider(); var flatContent = retroBoardCsvProvider.ReadFile(fullFilePath); var retroMessages = retroBoardCsvProvider.GetRetroMessagesFromFlatContent(flatContent); // run the sentiment analysis on the retro items and return a grouped list of messages by author var model = _sentimentService.GetAuthorMessagesWithSentiment(retroMessages); return(model); }
public FunRetroSentimentService(ISentimentService sentimentService) { _sentimentService = sentimentService; _retroBoardCsvProvider = new RetroBoardCsvProvider(); }