public void ShouldInitialiseTheSeasonFromLastSeason() { var sut = new RankingsJob( new FakeTimeKeeper( new System.DateTime( 2016,9,9 ) ), force: true ); var outcome = sut.DoJob(); Assert.IsFalse( string.IsNullOrEmpty( outcome ) ); }
public override string DoJob() { // pre-req var preJob = new RankingsJob( TimeKeeper, force: true ); var outcome = preJob.Execute(); Logger.Info("Rankings {0}", outcome ); return Report.DoReport(); }
public void TestTeamRankerJob() { var sut = new RankingsJob( new FakeTimeKeeper( "2015", "08" ) ); var outcome = sut.DoJob(); Assert.IsFalse( string.IsNullOrEmpty( outcome ) ); }