예제 #1
0
        public List <Report> GetTestReport(string fromDate, string toDate)
        {
            List <Report> testReports = aTestGateway.GetReport(fromDate, toDate);

            if (testReports.Count == 0)
            {
                List <Test>   testList    = aTestGateway.GetTestList();
                List <Report> aReportList = new List <Report>();
                foreach (Test test in testList)
                {
                    Report aReport = new Report();
                    aReport.TestName = test.TestName;
                    aReportList.Add(aReport);
                }
                return(aReportList);
            }
            else
            {
                return(testReports);
            }
        }