Пример #1
0
        public void getReportTypetestReportType()
        {
            Report report = new Report("test");

            Assert.AreEqual(report.getReportType(), "UNKNOWN TYPE");

            report = new LeagueStandingsReport("test", true);
            Assert.AreEqual(report.getReportType(), "LEAGUE STANDINGS");
        }
        public void Initialize()
        {
            Report.DATABASE.reset();
            SOMReportFile file = new SOMReportFile(Config.getConfigurationFile("ALL_REPORTS.PRT"));
            file.parseLeagueFile();
            leagueStandingsReport = (LeagueStandingsReport)file.FindReport("LEAGUE STANDINGS FOR");
            leagueStandingsReport.processReport(Program.LEAGUES[0].Length);

            lineScoreReport = (LineScoreAndMinorsReport)file.FindReport("INJURY/MINOR LEAGUE REPORT FOR");
            lineScoreReport.processReport(Program.LEAGUES[0].Length);
        }
Пример #3
0
 public void Initialize()
 {
     Config.PRT_FILE_LOCATION = "testData";
     Config.LEAGUE_NAME       = "";
     Report.DATABASE.reset();
     string [] leagues = { "" };
     Program.LEAGUES = leagues;
     file            = new SOMReportFile(Config.getConfigurationFile("ALL_REPORTS.PRT"));
     file.parseLeagueFile();
     leagueStandingsReport = (LeagueStandingsReport)file.FindReport("LEAGUE STANDINGS FOR");
     leagueStandingsReport.processReport(Program.LEAGUES[0].Length);
 }
        public void Initialize()
        {
            Config.PRT_FILE_LOCATION = "testData";
            Config.LEAGUE_NAME       = "";
            Report.DATABASE.reset();
            RecordIndex.resetIndex(RecordIndex.INDEX.TestTeamId);

            SOMReportFile file = new SOMReportFile(Config.getConfigurationFile("ALL_REPORTS.PRT"));

            file.parseLeagueFile();
            leagueStandingsReport = (LeagueStandingsReport)file.FindReport("LEAGUE STANDINGS FOR");
            leagueStandingsReport.processReport(Program.LEAGUES[0].Length);

            leaguePrimaryStatReport = (LeagueGrandTotalsReport)file.FindReport("LEAGUE GRAND TOTALS (primary report) FOR");
            leaguePrimaryStatReport.processReport(Program.LEAGUES[0].Length);
        }