public void TestRenderAllFantasyProjections() { var dao = new DbfPlayerGameMetricsDao(); // Could use a Fake here var scorer = new YahooProjectionScorer(); // Could use a Fake here var sut = new FantasyProjectionReport("2013", Utility.CurrentWeek(), dao, scorer); sut.League = Constants.K_LEAGUE_Yahoo; sut.RenderAll(); Assert.IsTrue(File.Exists(sut.FileName())); sut.League = Constants.K_LEAGUE_50_Dollar_Challenge; sut.RenderAll(); Assert.IsTrue(File.Exists(sut.FileName())); sut.League = Constants.K_LEAGUE_Rants_n_Raves; sut.RenderAll(); Assert.IsTrue(File.Exists(sut.FileName())); }
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); sut.League = Constants.K_LEAGUE_Rants_n_Raves; sut.RenderAll(); Assert.IsTrue(File.Exists(sut.FileName())); }