コード例 #1
0
 public void TestDefensivePatsyReport()
 {
     var week = Utility.CurrentNFLWeek();
      var ds = new DefensiveScorer();
      ds.RenderTeamToDefendAgainst( week );
      Assert.IsTrue( File.Exists( ds.FileOut ), string.Format( "Cannot find {0}", ds.FileOut ) );
 }
コード例 #2
0
 public void TestDefensiveScoringReport()
 {
     //  Lists the best Fantasy defence in the last season
      var week = new NFLWeek( "2015", "01" );
      var ds = new DefensiveScorer();
      ds.RenderDefensiveScoringReport( week );
      Assert.IsTrue( File.Exists( ds.FileOut ), string.Format( "Cannot find {0}", ds.FileOut ) );
 }
コード例 #3
0
 public DefensiveReportsJob( IKeepTheTime timekeeper )
 {
     Name = "Defensive Reports";
      Report = new DefensiveScorer();
      TimeKeeper = timekeeper;
      Logger = NLog.LogManager.GetCurrentClassLogger();
      IsNflRelated = true;
 }