コード例 #1
0
 public void TestFantasyProjectionJob()
 {
     var sut = new FantasyProjectionJob(new FakeTimeKeeper( season: "2016", week: "00"));
      sut.DoJob();
      var run = sut.Report.LastRun;
      Assert.IsTrue(run.Date.Equals(DateTime.Now.Date));
 }
コード例 #2
0
 public void TestDoFantasyProjectionJob()
 {
     var sut = new FantasyProjectionJob( new TimeKeeper(null) );
      var outcome = sut.DoJob();
      Assert.IsFalse(string.IsNullOrEmpty(outcome));
 }
コード例 #3
0
 public void TestTimeToDoFantasyProjectionJob()
 {
     var sut = new FantasyProjectionJob(new FakeTimeKeeper());
      string whyNot;
      Assert.IsFalse(sut.IsTimeTodo(out whyNot));
      Console.WriteLine(whyNot);
 }