/// <summary>
        /// Gets the diagnostics report.
        /// </summary>
        /// <param name="reportId">The report id.</param>
        /// <returns></returns>
        /// <remarks></remarks>
        public DiagnosticsViewItem[] GetDiagnosticsReport(string reportId)
        {
            var map = new DiagnosticsViewItemMapper();
            var res = DiagnosticsAgentFactory
                      .CreateDiagnosticsAgent()
                      .GetDiagnosticsDetailsForRun(reportId);

            return(map.MapFromServiceToBusiness(res));
        }
        /// <summary>
        /// Gets the diagnostics reports by date.
        /// </summary>
        /// <param name="date">The date.</param>
        /// <returns></returns>
        /// <remarks></remarks>
        public DiagnosticsBatchViewItem[] GetDiagnosticsReportsByDate(System.DateTime date)
        {
            var map = new DiagnosticsBatchViewItemMapper();
            var res = DiagnosticsAgentFactory
                      .CreateDiagnosticsAgent()
                      .GetDiagnosticsRunItemsForDate(date);

            return(map.MapFromBusinessToService(res));
        }