コード例 #1
0
        public AbstractTestConfigManager(TestConfig TestConfig, IObjectFactory Factory)
        {
            this.TestConfig     = TestConfig;
            this.Agent          = Factory;
            _testCaseRepository = this.Agent.GetTestCaseRepository(this.TestConfig);
            _testRunner         = this.Agent.GetTestRunnerByTestConfig(this.TestConfig);
            _reportProcessor    = this.Agent.GetReportManagerByTestConfig(this.TestConfig);

            this.Agent.LogUtil.LogMessage(string.Format("Filtering test cases for {0} ...", TestConfig.ID));
            this.FillDataMembersRelatedToTestCaseSelectionCriteria();
        }
コード例 #2
0
 public ReportProvider(IReportProcessorRunService reportProcessorRunService,
                       ILogger <ReportProvider> logger,
                       ISubscriptionService subscriptionService,
                       IReportProcessor reportProcessor, bool IsApiTriggered = false)
 {
     _reportProcessorRunService = reportProcessorRunService;
     _subscriptionService       = subscriptionService;
     _reportProcessor           = reportProcessor;
     _logger         = logger;
     _configuration  = CommonHelper.GetConfigurationObject();
     _isApiTriggered = IsApiTriggered;
 }
コード例 #3
0
        static void Main(string[] args)
        {
            IReportObject       ro  = UtilManager.Factory.CreateReportObject();
            IReportFormatObject rfo = UtilManager.Factory.CreateReportFormatObject();
            IReportProcessor    rp  = UtilManager.Factory.CreateReportProcessor();

            ro.InitReportObject();
            rfo.Parse("report.xml");
            rp.Find(ro, "key");

            Console.Read();
        }
コード例 #4
0
 public ReportApiController(ISubscriptionService subscriptionService,
                            ILicenceEnvironmentService licenceEnvironmentService,
                            IReportService reportService,
                            IUsageReportService usageReportService,
                            IDeviceOSReportService deviceOSReportService,
                            ISeatDetailsReportService seatDetailsReportService,
                            IUserDataService userDataService,
                            IDeviceManufacturerReportService deviceManufacturerReportService,
                            IDeviceTypeReportService deviceTypeReportService,
                            IProductService productService,
                            ILogger <ReportApiController> logger,
                            IEnterpriseClientService enterpriseClientService,
                            IPartnerService partnerService,
                            IDeviceTypeDictionaryService deviceTypeDictionaryService,
                            IDeviceModelDictionaryService deviceModelDictionaryService,
                            IMemoryCache cache,
                            ISubscriptionAuthService subscriptionAuthService,
                            IReportProcessorRunService reportProcessorRunService,
                            IReportProcessor reportProcessor,
                            ILogger <ReportProvider> reportLogger,
                            IUserService userService)
 {
     _subscriptionService             = subscriptionService;
     _licenceEnvironmentService       = licenceEnvironmentService;
     _reportService                   = reportService;
     _usageReportService              = usageReportService;
     _deviceOSReportService           = deviceOSReportService;
     _seatDetailsReportService        = seatDetailsReportService;
     _userDataService                 = userDataService;
     _deviceManufacturerReportService = deviceManufacturerReportService;
     _deviceTypeReportService         = deviceTypeReportService;
     _productService                  = productService;
     _logger = logger;
     _enterpriseClientService      = enterpriseClientService;
     _partnerService               = partnerService;
     _deviceTypeDictionaryService  = deviceTypeDictionaryService;
     _deviceModelDictionaryService = deviceModelDictionaryService;
     _cache = cache;
     _subscriptionAuthService   = subscriptionAuthService;
     _reportProcessorRunService = reportProcessorRunService;
     _reportProcessor           = reportProcessor;
     _reportLogger  = reportLogger;
     _configuration = CommonHelper.GetConfigurationObject();
     _userService   = userService;
     FillCache();
 }
        public IReportProcessor GetReportProcessor(string reportId)
        {
            Type          type      = null;
            ReportIDsEnum a_inputID = (ReportIDsEnum)Enum.Parse(typeof(ReportIDsEnum), reportId);

            switch (a_inputID)
            {
            case ReportIDsEnum.COVER_PAGE:
                type = Type.GetType("WealthTools.Library.Reports.CoverPage,WealthTools.Library.Reports");
                break;
            }
            if (type == null)
            {
                throw new Exception("Unknown type for controller: ");
            }


            Object           Obj    = _serviceProvider.GetService(type);
            IReportProcessor result = Obj as IReportProcessor;

            return(result);
        }
コード例 #6
0
        public IReportProcessor GetReportManagerByTestConfig(TestConfig TestConfig)
        {
            IReportProcessor reportProcessor = null;

            lock (this)
            {
                if (_dicReportManagerByTestConfig == null)
                {
                    _dicReportManagerByTestConfig = new Dictionary <TestConfig, IReportProcessor>();
                }

                if (_dicReportManagerByTestConfig.ContainsKey(TestConfig))
                {
                    reportProcessor = _dicReportManagerByTestConfig[TestConfig];
                }

                if (reportProcessor == null)
                {
                    reportProcessor = new ReportProcessor(TestConfig, this);
                    _dicReportManagerByTestConfig.Add(TestConfig, reportProcessor);
                }
            }
            return(reportProcessor);
        }