public RisksController(IRiskService riskService, IRelationshipService relationshipService, IAuditTrailService auditTrailService, ITreatmentService treatmentService) { _riskService = riskService; _relationshipService = relationshipService; _auditTrailService = auditTrailService; _treatmentService = treatmentService; }
public void SetUp() { EffectiveDate = DateTime.Now; RiskRepositoryMock = new Mock <IRiskRepository>(); PolicyRepositoryMock = new Mock <IPolicyRepository>(); RiskService = new RiskService(PolicyRepositoryMock.Object, RiskRepositoryMock.Object); }
public AXAPolicyRiskController(IUnityContainer container, ApplicationModel applicationModel, IRiskService riskService, ISearchServiceHandler searchservicehandler, IUwNameSearchHandler uwNameSearchHandler, IMetadataClientService metadataService, AXARiskModel policyWizardModel, UwPayloadManager payloadManager, UwRetrievalManager retrievalManager, AppModel appModel, IUwViewResolver viewresolver, IEventAggregator eventAggregator, IShellRulesHelper rulesHelper, IConverter<Xiap.Metadata.Data.Enums.StaticValues.ClaimLinkLevel, PolicyAttachmentGroupingLevel> claimLinkLevelPolicyAttachmentLevelConverterParam) : base(applicationModel, riskService, searchservicehandler, uwNameSearchHandler, metadataService, policyWizardModel, payloadManager, retrievalManager, appModel, viewresolver, eventAggregator, rulesHelper, container, claimLinkLevelPolicyAttachmentLevelConverterParam) { this.riskModel = policyWizardModel; this.riskModel.OnUpdateFromGeniusClick += new EventHandler<CommandEventArgs<HeaderDto>>(this.RiskModel_OnUpdateFromGeniusClick); this.riskModel.OnPolicySummaryClick += new EventHandler<CommandEventArgs<HeaderDto>>(this.RiskModel_OnPolicySummaryClick); this._payloadManager = payloadManager; }
public InsuranceCompany(string name, IList <Risk> availableRisks, IPolicyService policyService, IRiskService riskService, IPremiumCalculator premiumCalculator) { Name = name; AvailableRisks = availableRisks; _policyService = policyService; _riskService = riskService; _premiumCalculator = premiumCalculator; }
public MainViewViewModel() { _projectService = new ProjectService(); _riskService = new RiskService(); _taskService = new TaskService(); // this.LoadTasks(); this.LoadProjects(); // ProjectModelList = _projectService.GetProject(projectxml); }
public RiskController( IRiskService riskService, IMapper mapper, IOptions <AppSettings> appSettings) { _riskService = riskService; _mapper = mapper; _appSettings = appSettings.Value; }
public Routes( ICredentialsService credentialsService, IWellService wellService, IWellboreService wellboreService, ILogObjectService logObjectService, IMessageObjectService messageObjectService, IRigService rigService, ITrajectoryService trajectoryService, IJobService jobService, IRiskService riskService, IMudLogService mudLogService, IDocumentRepository <Server, Guid> witsmlServerRepository) { this.credentialsService = credentialsService; this.wellService = wellService; this.wellboreService = wellboreService; this.logObjectService = logObjectService; this.messageObjectService = messageObjectService; this.rigService = rigService; this.trajectoryService = trajectoryService; this.jobService = jobService; this.riskService = riskService; this.mudLogService = mudLogService; this.witsmlServerRepository = witsmlServerRepository; Get("/api/witsml-servers", GetWitsmlServers); Post("/api/witsml-servers", CreateWitsmlServer); Patch("/api/witsml-servers/{witsmlServerId}", UpdateWitsmlServer); Delete("/api/witsml-servers/{witsmlServerId}", DeleteWitsmlServer); Get("/api/wells", GetAllWells); Get("/api/wells/{wellUid}", GetWell); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}", GetWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/messages", GetMessagesForWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/messages/{messageUid}", GetMessage); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/logs/{logUid}", GetLog); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/logs", GetLogsForWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/logs/{logUid}/logcurveinfo", GetLogCurveInfo); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/logs/{logUid}/logdata", GetLogData); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/rigs", GetRigsForWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/rigs/{rigUid}", GetRig); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/trajectories", GetTrajectories); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/trajectories/{trajectoryUid}/trajectorystations", GetTrajectoryStations); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/risks", GetRisksForWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/mudlogs", GetMudLogsForWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/mudlogs/{mudlogUid}", GetMudLog); //Get Requests exceeding the URL limit Post("/api/wells/{wellUid}/wellbores/{wellboreUid}/logs/{logUid}/logdata", GetLargeLogData); Post("/api/jobs/{jobType}", CreateJob); Post("/api/credentials/authorize", Authorize); }
public void Setup() { PolicyDataProvder = new PolicyDataProvider(); RiskDataProvider = new RiskDataProvider(); PolicyRepository = new PolicyRepository(PolicyDataProvder); RiskRepository = new RiskRepository(RiskDataProvider); PolicySellService = new PolicyService(PolicyRepository, RiskRepository, PremiumCalculator); RiskService = new RiskService(PolicyRepository, RiskRepository); PremiumCalculator = new PremiumCalculator(RiskRepository); AvailableRiskUpdater = new AvailableRiskUpdater(Company); DEFAULT_OBJECT_NAME = "obj"; Risk1 = new Risk { Name = "Test risk 1", YearlyPrice = 500.0m }; Risk2 = new Risk { Name = "Test risk 2", YearlyPrice = 800.0m }; Risk3 = new Risk { Name = "Test risk 3", YearlyPrice = 400.0m }; List <Risk> initialAvailableRisks = new List <Risk>(); initialAvailableRisks.Add(Risk1); initialAvailableRisks.Add(Risk2); initialAvailableRisks.Add(Risk3); Company = new InsuranceCompany("If", initialAvailableRisks, PolicySellService, RiskService, PremiumCalculator); }
public PepController(IPEPService pepService, IPepExecutingAgencies pepExecAgency, IProcurement pepProcurement, ICacheManagement cacheData, IExportImportExcelPep exportImportExcelPep, IRiskService pepRiskService) { _pepService = pepService; _pepExecAgency = pepExecAgency; _pepProcurement = pepProcurement; _pepRiskService = pepRiskService; _viewModelMapperHelper = new ViewModelMapperHelper(pepService); _viewModelMapperHelperExecAgency = new ViewModelMapperHelperExecAgency(pepExecAgency); _viewModelMapperHelperProcurementType = new ViewModelMapperHelperProcurementType(pepProcurement); _viewModelMapperHelperPepVersion = new ViewModelMapperHelperPepVersion(pepService); _viewModelMapperHelperRisk = new ViewModelMapperHelperRisk(pepRiskService); _cacheData = cacheData; _outputsPhysicalCacheName = string.Format( CacheNames.OUTPUTS_PHYSICAL, IDBContext.Current.Operation); _outputsFinancialCacheName = string.Format( CacheNames.OUTPUTS_FINANCIAL, IDBContext.Current.Operation); _exportImportExcelPep = exportImportExcelPep; }
public AXAPolicySearchController(ApplicationModel applicationModel, IUnityContainer container, IRiskService riskService, AppModel appModel, ISearchServiceHandler searchService, AXAPolicySearchModel searchFilterModel, IIDSearches idSearch) : base(applicationModel, riskService, appModel, searchService, searchFilterModel, container, idSearch) { this._model = searchFilterModel; this.SetUnderwritingStage(); }
public BetsController(IRiskService riskService) { _riskService = riskService; }
public CustomersController(IRiskService riskService) { _riskService = riskService; }
public RiskHandler(IRiskService riskService) { _riskService = riskService; }
public RiskController(IRiskService riskService, IMapper mapper) { _riskService = riskService; _mapper = mapper; }
public ViewModelMapperHelperRisk(IRiskService pepRisk) { _pepRisk = pepRisk; }
public RiskController(IRiskService service) { _service = service; }