public UnitReportsJob(IHistorian historian) { Name = "Unit Reports"; Report = new UnitReport(); Historian = historian; Logger = NLog.LogManager.GetCurrentClassLogger(); IsNflRelated = true; }
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" ); }
public void TestUnitReportSD() { var sut = new UnitReport {SeasonMaster = Masters.Sm.GetSeason( "2015", teamsOnly: true )}; sut.TeamUnits( "2015", "2015SD" ); }