public Rookies(IKeepTheTime timekeeper) : base(timekeeper) { Name = "Rookies"; SetLastRunDate(); Configs = new List <RookieConfig> { new RookieConfig { Category = Constants.K_QUARTERBACK_CAT, Position = "QB" }, new RookieConfig { Category = Constants.K_RUNNINGBACK_CAT, Position = "RB" }, new RookieConfig { Category = Constants.K_RECEIVER_CAT, Position = "WR" }, new RookieConfig { Category = Constants.K_RECEIVER_CAT, Position = "TE" }, new RookieConfig { Category = Constants.K_KICKER_CAT, Position = "K" } }; Leagues = new List <RosterGridLeague> { new RosterGridLeague { Id = Constants.K_LEAGUE_Gridstats_NFL1, Name = "Gridstats GS1" } }; Generator = new RookieReportGenerator(); }
public void TestRookieRBsJobForG1() { var sut = new RookieReportGenerator(); var cfg = new RookieConfig { Category = Constants.K_RUNNINGBACK_CAT, Position = "RB" }; var result = sut.GenerateRookieReport(cfg, "G1","2016"); Assert.IsFalse( string.IsNullOrEmpty( result ) ); }
public Rookies() { Name = "Rookies"; SetLastRunDate(); Configs = new List<RookieConfig>(); Configs.Add(new RookieConfig { Category = Constants.K_QUARTERBACK_CAT, Position = "QB" }); Configs.Add(new RookieConfig { Category = Constants.K_RUNNINGBACK_CAT, Position = "RB" }); Configs.Add(new RookieConfig { Category = Constants.K_RECEIVER_CAT, Position = "WR" }); Configs.Add(new RookieConfig { Category = Constants.K_RECEIVER_CAT, Position = "TE" }); Configs.Add(new RookieConfig { Category = Constants.K_KICKER_CAT, Position = "K" }); Leagues = new List<RosterGridLeague>(); Leagues.Add(new RosterGridLeague { Id = Constants.K_LEAGUE_Gridstats_NFL1, Name = "Gridstats GS1" }); Generator = new RookieReportGenerator(); }