public PlayoffTeamsReport(IKeepTheTime timekeeper) : base(timekeeper) { Report = new SimplePreReport { ReportType = "Playoff Teams", Folder = "Playoffs", Season = timekeeper.Season, InstanceName = string.Format("Playoff-Week-{0:0#}", timekeeper.Week) }; }
public PlayoffTeamsReport( IKeepTheTime timekeeper ) { Report = new SimplePreReport { ReportType = "Playoff Teams", Folder = "Playoffs", Season = timekeeper.Season, InstanceName = string.Format( "Playoff-Week-{0:0#}", timekeeper.Week ) }; }
public void SimplePreReportFileOutTest() { var sut = new SimplePreReport(); sut.Season = "2013"; sut.Folder = "DepthCharts"; sut.ReportType = "Depth Chart"; sut.InstanceName = "SF"; sut.RenderHtml(); Assert.AreEqual(string.Format("{0}2013//DepthCharts//SF.htm", Utility.OutputDirectory()), sut.FileOut); }
public DeletePlayerReportsReport(IKeepTheTime timekeeper) : base(timekeeper) { Name = "Delete-Stale-Player-Reports"; Season = timekeeper.CurrentSeason(DateTime.Now); PreReport = new SimplePreReport { ReportType = Name, Folder = "Players", Season = Season, InstanceName = $"PlayerReportsDeleted-{Season}" }; }
public RetirePlayersReport(IKeepTheTime timekeeper) : base(timekeeper) { Name = "Retire-Player-Reports"; Season = timekeeper.CurrentSeason(DateTime.Now); PreReport = new SimplePreReport { ReportType = Name, Folder = "Players", Season = Season, InstanceName = $"PlayersProbablyRetired-{Season}" }; }
public LineupSummary(IKeepTheTime timekeeper, int week) : base(timekeeper) { Name = "Lineup Summary"; Season = timekeeper.Season; Week = $"{week:0#}"; Report = new SimplePreReport { ReportType = "Lineup Summary", Folder = "Starters", Season = Season, InstanceName = $"Lineup-Summary-Week-{Week:0#}" }; }
public PickupChart( string season, int week ) { Name = "Pickup Chart"; Season = season; Week = week; Report = new SimplePreReport { ReportType = "Pickup Chart", Folder = "Projections", Season = Season, InstanceName = string.Format( "Pickup-Chart-Week-{0:0#}", Week ) }; }
private void OutputReport( string body ) { var PreReport = new SimplePreReport { ReportType = Name, Folder = "Metrics", Season = Season, InstanceName = string.Format( "MetricsUpdates-{0:0#}", Week ), Body = body }; PreReport.RenderHtml(); FileOut = PreReport.FileOut; }
private void OutputReport(string body) { var PreReport = new SimplePreReport { ReportType = Name, Folder = "Metrics", Season = Season, InstanceName = string.Format("TeamMetricsUpdates-{0:0#}", Week), Body = body }; PreReport.RenderHtml(); FileOut = PreReport.FileOut; }
public PickupSummary(IKeepTheTime timekeeper, int week) : base(timekeeper) { Name = "Pickup Summary"; Season = timekeeper.Season; Week = week.ToString(); Report = new SimplePreReport { ReportType = "Pickup Summary", Folder = "Projections", Season = Season, InstanceName = $"Pickup-Summary-Week-{Week:0#}" }; Pickups = new List <Pickup>(); }
private void RenderPreReport() { TallyStats(); var PreReport = new SimplePreReport { ReportType = Name, Folder = "Scorecards", Season = Season, InstanceName = $"{PlayerType}-Week-{Week:0#}", Body = GenerateBody() }; PreReport.RenderHtml(); FileOut = PreReport.FileOut; }
public PickupChart( IKeepTheTime timekeeper, int week, bool playerReports = false) : base(timekeeper) { Name = "Pickup Chart"; Season = timekeeper.CurrentSeason(DateTime.Now); Week = week; Report = new SimplePreReport { ReportType = "Pickup Chart", Folder = "Projections", Season = Season, InstanceName = $"Pickup-Chart-Week-{Week:0#}" }; PickupSummary = new PickupSummary(timekeeper, week); PlayerReports = playerReports; }
public void SimplePreReportConstructorTest() { var sut = new SimplePreReport(); Assert.IsNotNull(sut); }