コード例 #1
0
 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 ) );
 }
コード例 #2
0
 public void TestTimetoDoFantasyReportReport()
 {
     var sut = new FantasyReportJob( new FakeTimeKeeper( season: "2015", week: "10" ) );
      string whyNot;
      Assert.IsTrue( sut.IsTimeTodo( out whyNot ) );
 }