public void TestDoBalanceReportJob2012() { var tk = new FakeTimeKeeper("2013"); var sut = new BalanceReportJob(tk); var outcome = sut.DoJob(); Assert.IsFalse(string.IsNullOrEmpty(outcome)); Console.WriteLine(outcome); }
public void TestDoBalanceReportJobLastFiveYears() { var tk = new FakeTimeKeeper("2014"); while (Int32.Parse( tk.PreviousSeason() ) > 2009 ) { var sut = new BalanceReportJob(tk); var outcome = sut.DoJob(); Assert.IsFalse(string.IsNullOrEmpty(outcome)); Console.WriteLine(outcome); tk.Season = tk.PreviousSeason(); } }