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 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)); }