Ejemplo n.º 1
0
        public void TestGsPerformanceReportRunningBacksWeek12()
        {
            var pr   = new PerformanceReport(season: "2012", week: 12);
            var week = new NFLWeek(seasonIn: 2012, weekIn: 12, loadGames: false);
            var gs   = new GS4Scorer(week)
            {
                ScoresOnly = true, Master = new GridStatsMaster("GridStats", "GridStats.xml")
            };

            pr.Scorer = gs;
            pr.Render(catCode: "2", sPos: "RB", leagueId: Constants.K_LEAGUE_Gridstats_NFL1, startersOnly: true);
            Assert.IsTrue(File.Exists(pr.FileOut), string.Format("Cannot find {0}", pr.FileOut));
        }
Ejemplo n.º 2
0
        public void HotList(string catCode, string position, bool freeAgentsOnly, bool startersOnly)
        {
            var gs = new GS4Scorer(Utility.CurrentNFLWeek());

            PlayerLister = new PlayerLister
            {
                CatCode        = catCode,
                Position       = position,
                FantasyLeague  = League,
                Season         = Utility.CurrentSeason(),
                FreeAgentsOnly = freeAgentsOnly,
                StartersOnly   = startersOnly,
                Week           = Utility.CurrentNFLWeek().WeekNo
            };
            PlayerLister.SetScorer(gs);
            PlayerLister.Load();
            PlayerLister.SubHeader = string.Format("{1} HotList for {0}",
                                                   PlayerLister.FantasyLeague, PlayerLister.Position);
            PlayerLister.FileOut = string.Format("HotLists//HotList-{0}-{1}",
                                                 PlayerLister.FantasyLeague, PlayerLister.Position);
            PlayerLister.Render(PlayerLister.FileOut);
        }