public void TestFileGetsOutput() { var dao = new DbfPlayerGameMetricsDao(); // Could use a Fake here var scorer = new YahooProjectionScorer(); // Could use a Fake here var sut = new FantasyProjectionReport("2013", "01", dao, scorer); sut.League = Constants.K_LEAGUE_Yahoo; sut.Render(); Assert.IsTrue(File.Exists(sut.FileName())); }
public void TestFileGetsOutputForSF() { var dao = new DbfPlayerGameMetricsDao(); // Could use a Fake here var scorer = new YahooProjectionScorer(); // Could use a Fake here var sut = new FantasyProjectionReport("2013", "01", dao, scorer); sut.TeamFilter = "SF"; sut.CategoryFilter = "3"; sut.Render(); Assert.IsTrue(File.Exists(sut.FileName())); }