Пример #1
0
        public void ShouldGetScoredHandlesFromFileInput()
        {
            const string category      = "Travel";
            var          path          = @"C:\Users\Nishant\Desktop\Dropbox\Ouzero\Tech-moms\";
            var          files         = Directory.GetFiles(path);
            var          scoredHandles = TwitterDataSourcer.ScoreHandlesFromFiles(files, category);

            Utilities.WriteScoredHandlesFile(path, scoredHandles, category);
            DatabaseConnector.BatchInsertRecords(scoredHandles);
            Utilities.WriteMissingHandlesFile(path, category);
            var scoringTimes = TwitterDataSourcer.ScoringTimes;

            path = path + "ScoringTimes.txt";
            Utilities.WriteFile(path, scoringTimes);
        }