Esempio n. 1
0
        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);
        }
 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;
        }
Esempio n. 4
0
        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;
        }