public MainViewModel( ICameraManager cameraManager, IReportManager reportManager, IConfigManager configManager, IDataManager dataManager) { _cameraManager = cameraManager; _reportManager = reportManager; _configManager = configManager; _dataManager = dataManager; Logs = new ObservableCollection <SystemLogViewModel>(); TimeList = new List <SelectItem> { new SelectItem { Value = ReportPeriodType.M15, Display = "15 Minute" }, new SelectItem { Value = ReportPeriodType.M30, Display = "30 Minute" }, new SelectItem { Value = ReportPeriodType.H1, Display = "1 Hour" }, }; Messenger.Default.Register <DataChangedNotificationMessage>(this, (msg) => { if (msg.DataChanged == DataChangedType.Config) { LoadConfig(); } }); }
private void Init() { Mapper.Initialize(cfg => { cfg.AddProfile <ModelProfile>(); }); _configManager = new ConfigManager(); _config = _configManager.GetConfig(); string connectionString = _config.DatabaseSource; IHeatMapRepository heatMapRepository = new HeatMapRepository(connectionString); ICountingRepository countingRepository = new CountingRepository(connectionString); _dataManager = new DataManager(heatMapRepository, countingRepository); IReportRepository reportRepository = new ReportRepository(connectionString); _reportManager = new ReportManager(reportRepository); ICameraRepository cameraRepository = new CameraRepository(connectionString); _cameraManager = new CameraManager(cameraRepository); }
/// <inheritdoc /> public override int Execute(UtilityCommandContext context, TArguments arguments) { this.context = context; this.arguments = arguments; reportManager = RuntimeAccessor.ServiceLocator.Resolve <IReportManager>(); return(ExecuteImpl() ? 0 : -1); }
public SuperReportController(IOrderManager iOrderManager, IReportManager iReportManager, IInventoryManager iInventoryManager, IDeliveryManager iDeliveryManager) { _iOrderManager = iOrderManager; _iReportManager = iReportManager; _iInventoryManager = iInventoryManager; _iDeliveryManager = iDeliveryManager; }
public EmailProvider(StatelessServiceContext context) : base(context) { var nodeContext = FabricRuntime.GetNodeContext(); this.configuration = new ServiceConfiguration(nodeContext, context.CodePackageActivationContext); this.storeFactory = new EmailStoreFactory(configuration.DefaultConnectionString); this.billingAgent = new BillingAgent(); this.metricManager = new MetricManager(configuration); this.credentialManager = new CredentialManager(this.storeFactory); this.reportManager = new ReportManager( nodeContext.NodeName, this.storeFactory, this.configuration, this.billingAgent, this.metricManager, this.credentialManager); this.engine = new EmailEngine( this.storeFactory, this.configuration, this.metricManager, this.credentialManager); }
protected override void ShowHelp() { // Show argument only help first because what we do next might take a little while // and we want to make the program appear responsive. base.ShowHelp(); // Print out options related to the currently available set of plugins. var setup = new RuntimeSetup(); if (Arguments != null && Arguments.PluginDirectories != null) { GenericCollectionUtils.ForEach(Arguments.PluginDirectories, x => setup.AddPluginDirectory(x)); } using (RuntimeBootstrap.Initialize(setup, CreateLogger())) { IReportManager reportManager = RuntimeAccessor.ServiceLocator.Resolve <IReportManager>(); ShowRegisteredComponents("Supported report types:", reportManager.FormatterHandles, h => h.GetTraits().Name, h => h.GetTraits().Description); ITestRunnerManager runnerManager = RuntimeAccessor.ServiceLocator.Resolve <ITestRunnerManager>(); ShowRegisteredComponents("Supported runner types:", runnerManager.TestRunnerFactoryHandles, h => h.GetTraits().Name, h => h.GetTraits().Description); } }
//Call the Dispose method later public void Dispose(bool disposing) { if (disposing) { Dispose(); } if (empRepo != null) { empRepo = null; } if (BunitsRepo != null) { BunitsRepo = null; } if (ReportRepo != null) { ReportRepo = null; } if (employeeManager != null) { employeeManager = null; } if (RoleManager != null) { RoleManager = null; } this.Dispose(); }
public HomeController(IReportManager reportManager, IMetricManager metricManager, ICompanyManager companyManager, ListHelper listHelper) { _reportManager = reportManager; _metricManager = metricManager; _companyManager = companyManager; ListHelper = listHelper; }
public PropertyAppServiceTests() { this.subRepositoryProperty = Resolve <IRepository <Core.Models.Property> >(); this.subRepositoryPropertyLeaseInfo = Resolve <IRepository <PropertyLeaseInfo> >(); this.subRepositoryPropertySaleInfo = Resolve <IRepository <PropertySaleInfo> >(); this.subRepositoryPropertySaleSelectedAgent = Resolve <IRepository <PropertySaleSelectedAgent> >(); this.subRepositoryPropertyLeaseSelectedAgent = Resolve <IRepository <PropertyLeaseSelectedAgent> >(); this.subRepositoryPropertyImage = Resolve <IRepository <Core.Models.PropertyImage> >(); this.subRepositoryPropertyMeta = Resolve <IRepository <PropertyMeta> >(); this.subRepositoryUserLong = Resolve <IRepository <User, long> >(); this.subRepositoryPropertyAppointment = Resolve <IRepository <Core.Models.PropertyAppointment> >(); this.subNotificationManager = Resolve <INotificationManager>(); this.subHostingEnvironment = Resolve <IHostingEnvironment>(); this.subHttpContextAccessor = Resolve <IHttpContextAccessor>(); this.subLogger = Resolve <ILogger <PropertyAppService> >(); this.subUnitOfWorkManager = Resolve <IUnitOfWorkManager>(); this.subRepositoryPropertyFollowUp = Resolve <IRepository <Core.Models.PropertyFollowUp> >(); this.subConfiguration = Resolve <IConfiguration>(); this.subAzureBlobManager = Resolve <IAzureBlobManager>(); this.subPropertyImageAppService = Resolve <IPropertyImageAppService>(); this.subRepositoryAgentFlatSimpleConsolidateViewLong = Resolve <IRepository <Core.Models.View.AgentFlatSimpleConsolidateView, long> >(); this.subPropertyManager = Resolve <IPropertyManager>(); this.subAgentManager = Resolve <IAgentManager>(); this.subPropertyImageManager = Resolve <IPropertyImageManager>(); this.subRepositoryAgentProfileLong = Resolve <IRepository <AgentProfile, long> >(); this.subRepositoryPropertyConsolidateListView = Resolve <IRepository <Core.Models.View.PropertyConsolidateListView> >(); this.subRepositoryPropertySelectedAgent = Resolve <IRepository <Core.Models.PropertySelectedAgent> >(); this.subRepositorySurvey = Resolve <IRepository <Core.Models.Survey> >(); this.subRepositoryPropertySellerAvailableSlot = Resolve <IRepository <Core.Models.PropertySellerAvailableSlot> >(); this.subHubContext = Resolve <IHubContext <PropertyHub> >(); this.subUserManager = Resolve <UserManager>(); this.subReportManager = Resolve <IReportManager>(); this.subSurveyManager = Resolve <ISurveyManager>(); this.subSettingManager = Resolve <ISettingManager>(); }
public ReportBusinessManager(IMapper mapper, ICompanyManager companyManager, ICustomerManager customerManager, ICustomerActivityManager customerActivityManager, ICustomerCreditUtilizedManager customerCreditUtilizedManager, ISavedReportFactManager savedReportFactManager, ISavedReportFieldManager savedReportFieldManager, ISavedReportFileManager savedReportFileManager, ISavedReportPlanManager savedReportPlanManager, ISavedReportPlanFieldManager savedReportPlanFieldManager, ICrudBusinessManager businessManager, IReportManager reportManager ) { _mapper = mapper; _companyManager = companyManager; _customerManager = customerManager; _customerActivityManager = customerActivityManager; _customerCreditUtilizedManager = customerCreditUtilizedManager; _savedReportFactManager = savedReportFactManager; _savedReportFieldManager = savedReportFieldManager; _savedReportFileManager = savedReportFileManager; _savedReportPlanManager = savedReportPlanManager; _savedReportPlanFieldManager = savedReportPlanFieldManager; _businessManager = businessManager; _reportManager = reportManager; }
public OrderController(IOrderManager iOrderManager, IProductManager iProductManager, IReportManager iReportManager, IBarCodeManager iBarCodeManager) { _iProductManager = iProductManager; _iOrderManager = iOrderManager; _iReportManager = iReportManager; _iBarCodeManager = iBarCodeManager; }
public ReportAgent(ConnectorCredential credential, IReportManager reportManager) { this.credential = credential; this.reportManager = reportManager; this.thisLock = new object(); }
public static FileInfo GetHtmlFormattedReport(string sessionId, bool condensed) { IDiskCacheGroup group = GetReportCacheGroup(sessionId); string directory = condensed ? "Condensed" : "Full"; FileInfo htmlReportFile = group.GetFileInfo(Path.Combine(directory, HtmlReportFileName)); if (!htmlReportFile.Exists) { Report report = LoadSerializedReport(sessionId); if (report == null) { return(null); } group.CreateSubdirectory(directory); IReportManager reportManager = RuntimeAccessor.ServiceLocator.Resolve <IReportManager>(); FileSystemReportContainer reportContainer = new FileSystemReportContainer(htmlReportFile.DirectoryName, ReportBaseName); IReportWriter reportWriter = reportManager.CreateReportWriter(report, reportContainer); var reportFormatterOptions = new ReportFormatterOptions(); reportManager.Format(reportWriter, condensed ? "Html-Condensed" : "Html", reportFormatterOptions, NullProgressMonitor.CreateInstance()); } return(htmlReportFile); }
private void InitReportManager(ISdkConfiguration config = null) { var newConfig = config ?? MtsSdk.CreateConfigurationBuilder() .SetUsername("username") .SetPassword("password") .SetHost("mtsgate-ci.betradar.com") .SetVirtualHost("/vhost") .SetLimitId(111) .SetBookmakerId(333) .SetAccessToken("erErk34kfErr") .SetCurrency("EUR") .SetNode(10) .SetMtsClientApiHost("https://mts-api-ci.betradar.com/edge/proxy") .SetKeycloakHost("https://mts-auth-ci.betradar.com") .SetKeycloakUsername("keycloackUsername") .SetKeycloakPassword("keycloackPassword") .SetKeycloakSecret("53d342-4a7c-dgdbd23-9e1b-93822f2") .Build(); _mtsAuthService = new MtsAuthServiceHelper(config); var uri = new Uri(newConfig.KeycloakHost + "/ReportingCcf/external/api/report/export/history/ccf/changes/client/api"); _mockDataFetcher = new Mock <DataFetcherHelper>(); _mockDataFetcher.Setup(p => p.GetDataAsync(It.IsAny <Uri>())).Returns(new DataFetcherHelper(BuilderFactoryHelper.UriReplacements).GetDataAsync(uri)); _reportManager = new ReportManager(_mockDataFetcher.Object, uri.OriginalString, _mtsAuthService, null, newConfig); }
protected void Page_Load(object sender, EventArgs e) { IReportManager reportManager = ReportManagerFactory.Create(this.CurrentScope(), Context.User as CffPrincipal); presenter = new OverdueChargesPresenter(this, ReportsService.Create(), reportManager); ICffClient xClient = (SessionWrapper.Instance.Get != null) ? SessionWrapper.Instance.Get.ClientFromQueryString : (!string.IsNullOrEmpty(QueryString.ViewIDValue)) ? SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).ClientFromQueryString : null; if (xClient != null) { targetName = ": " + xClient.Name; } if (SessionWrapper.Instance.Get.CustomerFromQueryString != null) { if (targetName != null || !targetName.Equals("")) { targetName += " / "; targetName = string.Concat(targetName, xClient.Name); } else { targetName = ": " + xClient.Name; } } // end if (!IsPostBack) { presenter.ConfigureView(this.CurrentScope()); presenter.ShowReport(this.CurrentScope(), true); } }
public ReportsController(IReportManager iReportManager, IAccountsManager iAccountsManager, IClientManager iClientManager, ICommonManager iCommonManager) { _iReportManager = iReportManager; _iAccountsManager = iAccountsManager; _iClientManager = iClientManager; _iCommonManager = iCommonManager; }
public DropDownController(ICommonMethod _ICommonMethod, ICommonMethodAdmin _ICommonMethodAdmin, IGlobalAdmin _IGlobalAdmin, IReportManager _IReportManager) { this._ICommonMethod = _ICommonMethod; this._ICommonMethodAdmin = _ICommonMethodAdmin; this._IGlobalAdmin = _IGlobalAdmin; this._IReportManager = _IReportManager; }
public ClientManager(IClientGateway iClientGateway, IOrderManager iOrderManager, IDeliveryGateway iDeliveryGateway, IReportManager iReportManager) { _iClientGateway = iClientGateway; _iOrderManager = iOrderManager; _iDeliveryGateway = iDeliveryGateway; _iReportManager = iReportManager; }
public OperationController( ISmsStoreFactory factory, ServiceConfiguration configuration, IReportManager reportManager, IInboundManager inboundManager, ICredentialManager credentialManager, MetricManager metricManager) { this.store = factory.GetStore(); this.configuration = configuration; this.reportManager = reportManager; this.inboundManager = inboundManager; this.credentialManager = credentialManager; this.metricManager = metricManager; this.random = new Random(); this.proxyFactory = new ServiceProxyFactory((c) => { return(new FabricTransportServiceRemotingClientFactory( serializationProvider: new ServiceRemotingJsonSerializationProvider())); }); if (this.configuration.SmsOpsInfo.IsValid()) { this.mailHelper = new MailHelper(this.configuration.SmsOpsInfo); } }
public HomeController(IInventoryManager iInventoryManager, IOrderManager iOrderManager, IInvoiceManager iInvoiceManager, IBranchManager iBranchManager, IReportManager iReportManager) { _iInventoryManager = iInventoryManager; _iBranchManager = iBranchManager; _iInvoiceManager = iInvoiceManager; _iOrderManager = iOrderManager; _iReportManager = iReportManager; }
public ReportsController(IReportManager reportManager, ILoggerManager logger, UserManager <User> userManager) { _reportManager = reportManager; _logger = logger; _userManager = userManager; }
private void InitializeAvailableReportTypes() { IReportManager reportManager = RuntimeAccessor.ServiceLocator.Resolve <IReportManager>(); types = new List <ReportFormatterTraits>(GenericCollectionUtils.Select(reportManager.FormatterHandles, x => x.GetTraits())); typeNames = new List <string>(GenericCollectionUtils.Select(types, x => x.Name)); comboBoxOutputReportType.Items.AddRange(GenericCollectionUtils.ToArray(types)); }
public ServiceManagementController(IInventoryManager iInventoryManager, ICommonManager iCommonManager, IServiceManager iServiceManager, IBranchManager iBranchManager, IReportManager iReportManager) { _iInventoryManager = iInventoryManager; _iCommonManager = iCommonManager; _iServiceManager = iServiceManager; _iBranchManager = iBranchManager; _iReportManager = iReportManager; }
static SearchFightCore() { SearchManager = new SearchManager(); WinnerManager = new WinnerManager(); ReportManager = new ReportManager(); Reports = new List <string>(); }
public ReportData(ReportDbContext reportDbContext, IReportManager reportManager, IAccessManager accessManager, IColumnCreater columnCreater, IButtonCreater buttonCreater) { _reportDbContext = reportDbContext; _reportManager = reportManager; _accessManager = accessManager; _columnCreater = columnCreater; _buttonCreater = buttonCreater; }
public ProductController(IInventoryManager iInventoryManager, IProductManager iProductManager, IBranchManager iBranchManager, IReportManager iReportManager, IBarCodeManager iBarCodeManager) { _iInventoryManager = iInventoryManager; _iProductManager = iProductManager; _iBranchManager = iBranchManager; _iReportManager = iReportManager; _iBarCodeManager = iBarCodeManager; }
public HomeController(IServiceManager iServiceManager, IEmployeeManager iEmployeeManager, IInventoryManager iInventoryManager, IReportManager iReportManager, IBarCodeManager iBarCodeManager) { _iServiceManager = iServiceManager; _iEmployeeManager = iEmployeeManager; _iInventoryManager = iInventoryManager; _iReportManager = iReportManager; _iBarCodeManager = iBarCodeManager; }
public TestApiController(IApplicationCache appCache, ISessionCache sessionCache, IXmlFileManager xmlFileManager, IRequestClient requestClient, ITextFileManager textFileManager, IReportManager reportManager) { _appCache = appCache; _sessionCache = sessionCache; _xmlFileManager = xmlFileManager; _requestClient = requestClient; _textFileManager = textFileManager; _reportManager = reportManager; }
public static void SetManager(IReportManager manager) { _Manager = manager; foreach (ButtonAdapter var in catchItems) { _Manager.AddButton(var); } catchItems.Clear(); }
public RequisitionController(IRequisition RParam, IBusinessUnits BParam, IEmploymentStatus SParam, IJobtitles jParam, IReportManager RMParam, IEmployees EParam) { RequisitionRepo = RParam; BunitsRepo = BParam; statusRepo = SParam; JobRepo = jParam; managerRepo = RMParam; EmployeeRepo = EParam; }
public RequestDetailsService(IOrderManager orderManager, IReferenceManagement referenceManagement, ISecurityContext securityContext, IAppraiserOrderDeliveryService appraiserOrderDeliveryService, IReportManager reportManager) { if (orderManager == null) throw new ArgumentNullException("orderManager"); if (referenceManagement == null) throw new ArgumentNullException("referenceManagement"); if (securityContext == null) throw new ArgumentNullException("securityContext"); if (appraiserOrderDeliveryService == null) throw new ArgumentNullException("appraiserOrderDeliveryService"); if (reportManager == null) throw new ArgumentNullException("reportManager"); _orderManager = orderManager; _referenceManagement = referenceManagement; _securityContext = securityContext; _appraiserOrderDeliveryService = appraiserOrderDeliveryService; _reportManager = reportManager; }
public OrderService(IOrderRepository orderRepository, IReferenceManagement referenceManagement, IGeocodingDataService geocodingDataService, ITaskManager taskManager, IOrderManager orderManager, IAppraisalFormsService appFormsService, IClientDashboardService dashboarService, IConfigurationHelper configurationHelper, ICryptographicProvider cryptographicProvider, IDocumentService documentService, IReportManager reportManager, ISecurityContext securityContext, IOrderDocumentsRepository orderDocumentsRepository) { _orderRepository = ValidationUtil.CheckOnNullAndThrowIfNull(orderRepository); _referenceManager = ValidationUtil.CheckOnNullAndThrowIfNull(referenceManagement); _geocodingDataService = ValidationUtil.CheckOnNullAndThrowIfNull(geocodingDataService); _taskManager = ValidationUtil.CheckOnNullAndThrowIfNull(taskManager); _orderManager = ValidationUtil.CheckOnNullAndThrowIfNull(orderManager); _appFormsService = ValidationUtil.CheckOnNullAndThrowIfNull(appFormsService); _dashboarService = ValidationUtil.CheckOnNullAndThrowIfNull(dashboarService); _configurationHelper = ValidationUtil.CheckOnNullAndThrowIfNull(configurationHelper); _cryptographicProvider = ValidationUtil.CheckOnNullAndThrowIfNull(cryptographicProvider); _documentService = ValidationUtil.CheckOnNullAndThrowIfNull(documentService); _reportManager = ValidationUtil.CheckOnNullAndThrowIfNull(reportManager); _securityContext = ValidationUtil.CheckOnNullAndThrowIfNull(securityContext); _orderDocumentsRepository = ValidationUtil.CheckOnNullAndThrowIfNull(orderDocumentsRepository); _addressManager = new AddressManager(_referenceManager); _dateTimeManager = new DateTimeManager(_referenceManager); }
public ReportService(IReportManager reportManager) { this.reportManager = reportManager; }
public void TestInit() { _reportsManager = new ReportsManager(); }
public LetterOfEngagementServiceTest() { _documentService = Substitute.For<IDocumentService>(); _reportManager = Substitute.For<IReportManager>(); _target = new LetterOfEngagementService(_documentService, _reportManager); }
/// <summary> /// Initializes a new instance of the <see cref="ReportToExcelController" /> class. /// </summary> /// <param name="manager">The manager.</param> public ReportToExcelController(IReportManager manager) { this.reportManager = manager; this.excelProvider = new ExcelProvider(); this.pdfGenerator = new PDFGenerator(); }
/// <summary> /// Generates reports of the desired forms. /// </summary> /// <remarks> /// <para> /// This method adds the paths of the generated report documents to <see cref="ReportDocumentPaths" />. /// </para> /// </remarks> /// <param name="reportDirectory">The report directory.</param> /// <param name="reportName">The report name.</param> /// <param name="reportArchive">Determines whether to enclose the resulting test report in a compressed archive file.</param> /// <param name="reportFormats">The report formats to generate.</param> /// <param name="reportFormatOptions">The report formatter options.</param> /// <param name="reportManager">The report manager.</param> /// <param name="progressMonitor">A progress monitor for the operation.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="reportDirectory"/>, /// <paramref name="reportName"/>, <paramref name="reportFormats"/>, <paramref name="reportFormatOptions"/>, /// <paramref name="reportManager"/>, or <paramref name="progressMonitor"/> is null.</exception> public void GenerateReports(string reportDirectory, string reportName, ReportArchive reportArchive, IList<string> reportFormats, ReportFormatterOptions reportFormatOptions, IReportManager reportManager, IProgressMonitor progressMonitor) { if (reportDirectory == null) throw new ArgumentNullException("reportDirectory"); if (reportName == null) throw new ArgumentNullException("reportName"); if (reportFormats == null) throw new ArgumentNullException("reportFormats"); if (reportFormatOptions == null) throw new ArgumentNullException("reportFormatOptions"); if (reportManager == null) throw new ArgumentNullException("reportManager"); if (progressMonitor == null) throw new ArgumentNullException("progressMonitor"); var factory = new ReportContainerFactory(new FileSystem(), reportDirectory, reportName); using (progressMonitor.BeginTask("Generating reports.", reportFormats.Count)) using (IReportContainer reportContainer = factory.MakeForSaving(reportArchive)) { IReportWriter reportWriter = reportManager.CreateReportWriter(report, reportContainer); // Delete the report if it exists already. reportContainer.DeleteReport(); // Format the report in all of the desired ways. foreach (string reportFormat in reportFormats) { using (IProgressMonitor subProgressMonitor = progressMonitor.CreateSubProgressMonitor(1)) reportManager.Format(reportWriter, reportFormat, reportFormatOptions, subProgressMonitor); } // Save the full paths of the documents. foreach (string reportDocumentPath in reportWriter.ReportDocumentPaths) AddReportDocumentPath(Path.Combine(reportDirectory, reportDocumentPath)); } }
public LetterOfEngagementService(IDocumentService documentService, IReportManager reportManager) { _documentService = ValidationUtil.CheckOnNullAndThrowIfNull(documentService); _reportManager = ValidationUtil.CheckOnNullAndThrowIfNull(reportManager); }
/// <summary> /// Initializes a new instance of the <see cref="ReportController" /> class. /// </summary> /// <param name="manager">The manager.</param> public ReportController(IReportManager manager) { this.reportManager = manager; }