public StrengthOfScheduleJob(IKeepTheTime timeKeeper)
 {
     Name = "Strength of Schedule Report";
     TimeKeeper = timeKeeper;
      IsNflRelated = true;
      Logger = LogManager.GetCurrentClassLogger();
      SeasonScheduler = new SeasonScheduler();
 }
 public GeneratePlayerProjectionsJob( IKeepTheTime timeKeeper )
 {
     Name = "Generate Player Projections";
     TimeKeeper = timeKeeper;
     Logger = LogManager.GetCurrentClassLogger();
     IsNflRelated = true;
     Report = new PlayerProjectionGenerator( playerCache: null ) {Name = Name};
      SeasonScheduler = new SeasonScheduler();
 }
Exemplo n.º 3
0
 public GameProjectionsJob(IKeepTheTime timeKeeper)
 {
     Name = "Game Projections";
      var week = string.Format( "{0:00}", timeKeeper.CurrentWeek( DateTime.Now ) );
      Report = new SeasonProjectionReport( timeKeeper.CurrentSeason( DateTime.Now ), week );
      TimeKeeper = timeKeeper;
      Logger = NLog.LogManager.GetCurrentClassLogger();
      IsNflRelated = true;
      SeasonScheduler = new SeasonScheduler();
 }
 public void TestWeekKeyWildCard2014()
 {
     var sut = new SeasonScheduler();
      Assert.AreEqual("2014:18", sut.WeekKey(new DateTime(2015, 01, 01)));
 }
 public void TestWeekKeyWeek1of2014()
 {
     var sut = new SeasonScheduler();
      Assert.AreEqual("2014:01", sut.WeekKey(new DateTime(2014, 09, 04)));
 }
 public void TestWeekKey20150316()
 {
     var sut = new SeasonScheduler();
      Assert.AreEqual("2015:00", sut.WeekKey( new DateTime( 2015,03,16 ) ) );
 }
 public void TestWeek1Of2014Ends()
 {
     var sut = new SeasonScheduler();
      Assert.AreEqual(new DateTime( 2014, 9, 8 ), sut.WeekEnds("2014", "01"));
 }
 public void TestSeason2014()
 {
     var sut = new SeasonScheduler();
      Assert.IsTrue(sut.ScheduleAvailable("2014"));
 }
 public void TestOpeningDaySeason2015()
 {
     var sut = new SeasonScheduler();
      Assert.AreEqual( new DateTime(1,1,1), sut.SeasonStarts("2015"));  // schedule not entered as of 2015-03-16
 }
Exemplo n.º 10
0
 public void TestOpeningDaySeason2014ViaWeek()
 {
     var sut = new SeasonScheduler();
      Assert.AreEqual(new DateTime(2014, 9, 4), sut.WeekStarts("2014","01"));
 }
Exemplo n.º 11
0
 public void TestCurrentSeason()
 {
     var sut = new SeasonScheduler();
      Assert.IsFalse( sut.ScheduleAvailable( "2015" ) );
 }
Exemplo n.º 12
0
 public void TestClosingDaySeason2014()
 {
     var sut = new SeasonScheduler();
      Assert.AreEqual(new DateTime(2015, 2, 1), sut.SeasonEnds("2014"));
 }
Exemplo n.º 13
0
 public void TestClosingDayRegularSeason2014()
 {
     var sut = new SeasonScheduler();
      Assert.AreEqual(new DateTime( 2014, 12, 28), sut.RegularSeasonEnds("2014"));
 }