예제 #1
0
 public UnitReportsJob(IHistorian historian)
 {
     Name = "Unit Reports";
     Report = new UnitReport();
     Historian = historian;
      Logger = NLog.LogManager.GetCurrentClassLogger();
      IsNflRelated = true;
 }
예제 #2
0
 public void TestOutputFileName()
 {
     //  Fake historian garantees job will run always
     var sut = new UnitReport();
     var result = sut.OutputFilename();
     Console.WriteLine(result);
     Assert.IsFalse( string.IsNullOrEmpty( result ) );
     Assert.AreEqual( result, ".//Output//2015//Units" );
 }
예제 #3
0
 public void TestUnitReportSD()
 {
     var sut = new UnitReport {SeasonMaster = Masters.Sm.GetSeason( "2015", teamsOnly: true )};
     sut.TeamUnits( "2015", "2015SD" );
 }