示例#1
0
        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);
        }
示例#2
0
 public FunRetroSentimentService(ISentimentService sentimentService)
 {
     _sentimentService      = sentimentService;
     _retroBoardCsvProvider = new RetroBoardCsvProvider();
 }