public FpProjections() { Name = "FP Projections"; Fpr = new FantasyProjectionReport(); Dao = new DbfPlayerGameMetricsDao(); // for fetching the metrics (but they need generation) Scorer = new YahooProjectionScorer(); Configure(); }
public FpProjections(IKeepTheTime timekeeper) : base(timekeeper) { Name = "FP Projections"; Fpr = new FantasyProjectionReport(); Dao = new DbfPlayerGameMetricsDao(); // for fetching the metrics (but they need generation) Scorer = new YahooProjectionScorer(); Configure(); }
public void TestFileGetsOutputForSF() { // small focused test on specific criteria var dao = new DbfPlayerGameMetricsDao(); // Could use a Fake here var scorer = new YahooProjectionScorer(); // Could use a Fake here var sut = new FantasyProjectionReport( "2014", "01", dao, scorer ) {TeamFilter = "SF", CategoryFilter = "3"}; sut.Render(); var fileOut = sut.FileName(); Assert.IsTrue(File.Exists(fileOut)); }
public void TestRenderAllFantasyProjections() { // test a league using yahoo scoring - takes a fair while // out put goes here g:\FileSync\SyncProjects\GerardGui\Gerard.Tests\bin\Debug\Output\2014\Projections\ var dao = new DbfPlayerGameMetricsDao(); // Could use a Fake here var scorer = new YahooProjectionScorer(); // Could use a Fake here var sut = new FantasyProjectionReport( "2015", "04", dao, scorer ) {League = Constants.K_LEAGUE_Yahoo}; sut.RenderAll(); var fileOut = sut.FileName(); Assert.IsTrue( File.Exists(fileOut ) ); }
public override void RenderAsHtml() { FPR = new FantasyProjectionReport(); foreach (var league in Leagues) { foreach (var rpt in Configs) { rpt.League = league.Id; GenerateReport(rpt); } } }
public void TestFileGetsOutputForWR() { var dao = new DbfPlayerGameMetricsDao(); // Could use a Fake here var scorer = new YahooProjectionScorer(); // Could use a Fake here var sut = new FantasyProjectionReport( "2014", "1", dao, scorer ) { League = Constants.K_LEAGUE_Gridstats_NFL1, CategoryFilter = "3" }; sut.Render(); var fileOut = sut.FileName(); Assert.IsTrue(File.Exists(fileOut)); }
public void TestRenderSingleLeagueRunningbacksProjection() { // shorter test 7 mins just on running backs var dao = new DbfPlayerGameMetricsDao(); // Could use a Fake here var scorer = new YahooProjectionScorer(); // Could use a Fake here var sut = new FantasyProjectionReport("2014", "14", dao, scorer) { League = Constants.K_LEAGUE_Yahoo}; sut.RenderRunningbacks(); var fileOut = sut.FileName(); Assert.IsTrue(File.Exists(fileOut)); }
public void TestRenderRantsProjection() { var dao = new DbfPlayerGameMetricsDao(); // Could use a Fake here var scorer = new YahooProjectionScorer(); // Could use a Fake here var sut = new FantasyProjectionReport("2013", "2", dao, scorer) {League = Constants.K_LEAGUE_Rants_n_Raves}; sut.RenderAll(); var fileOut = sut.FileName(); Assert.IsTrue(File.Exists(fileOut)); }
public void TestRenderTommysProjection() { var dao = new DbfPlayerGameMetricsDao(); // Could use a Fake here var scorer = new YahooProjectionScorer(); // Could use a Fake here var sut = new FantasyProjectionReport("2013", "4", dao, scorer) { League = Constants.K_LEAGUE_50_Dollar_Challenge }; sut.RenderAll(); Assert.IsTrue(File.Exists(sut.FileName())); }