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));
 }
Beispiel #2
0
 public void TestDoFantasyProjectionJob()
 {
     var sut = new FantasyProjectionJob( new TimeKeeper(null) );
      var outcome = sut.DoJob();
      Assert.IsFalse(string.IsNullOrEmpty(outcome));
 }
 public void TestTimeToDoFantasyProjectionJob()
 {
     var sut = new FantasyProjectionJob(new FakeTimeKeeper());
      string whyNot;
      Assert.IsFalse(sut.IsTimeTodo(out whyNot));
      Console.WriteLine(whyNot);
 }