public void TestFantasyReportJob() { var sut = new FantasyReportJob( new FakeTimeKeeper( season: "2016", week: "14" ) ); sut.DoJob(); var run = sut.Report.LastRun; Assert.IsTrue( run.Date.Equals( DateTime.Now.Date ) ); }
public void TestTimetoDoFantasyReportReport() { var sut = new FantasyReportJob( new FakeTimeKeeper( season: "2015", week: "10" ) ); string whyNot; Assert.IsTrue( sut.IsTimeTodo( out whyNot ) ); }