public MultiHazardRiskAssessmentAttachmentService(
     IMultiHazardRiskAssessmentRepository multiHazardRiskAssessmentRepository,
     IHazardRepository hazardsRepository, IUserForAuditingRepository userForAuditingRepository, IPeninsulaLog log)
 {
     _multiHazardRiskAssessmentRepository = multiHazardRiskAssessmentRepository;
     _hazardsRepository = hazardsRepository;
     _userForAuditingRepository = userForAuditingRepository;
     _log = log;
 }
 public CompanyDefaultsTaskFactory(ICompanyDefaultService companyDefaultService, ISuppliersService suppliersService, IDoesCompanyDefaultAlreadyExistGuard companyDefaultAlreadyExistGuard, IHazardRepository hazardRepository, IPeopleAtRiskRepository peopleAtRiskRepository, ISupplierRepository supplierRepository)
 {
     _companyDefaultService = companyDefaultService;
     _companyDefaultAlreadyExistGuard = companyDefaultAlreadyExistGuard;
     _hazardRepository = hazardRepository;
     _peopleAtRiskRepository = peopleAtRiskRepository;
     _supplierRepository = supplierRepository;
     _suppliersService = suppliersService;
 }
Exemple #3
0
        public RiskAssessmentController()
        {
            UnitOfWork unitOfWork = new UnitOfWork();

            this._IRiskAssessmentRepository   = new RiskAssessmentRepository(unitOfWork);
            this._IHazardRepository           = new HazardRepository(unitOfWork);
            this._IMonitoringMethodRepository = new MonitoringMethodRepository(unitOfWork);
            this._IDurationUnitRepository     = new DurationUnitRepository(unitOfWork);
            this._caching = new CacheManagement();
        }
Exemple #4
0
 public MediaController(IHostingEnvironment host, IUnitofWork unitOfWork, IIncidenceRepository incidenceRepo, IMapper mapper,
                        IMediaRepository photoRepo, IPhotoService photoService, ISettingsRepository settingsRepo, IUserRepository userRepo, IHazardRepository hazardRepo)
 {
     _host          = host;
     _unitOfWork    = unitOfWork;
     _incidenceRepo = incidenceRepo;
     _photoRepo     = photoRepo;
     _mapper        = mapper;
     _photoService  = photoService;
     _settingsRepo  = settingsRepo;
     _userRepo      = userRepo;
     _hazardRepo    = hazardRepo;
 }
Exemple #5
0
 public HazardController(IMapper mapper, IHazardRepository repository, IUnitofWork unitOfWork, IUserRepository userRepo, INotificationRepository notificationRepo,
                         ISettingsRepository settingsRepo, IHostingEnvironment host, IPhotoService photoService, IIncidenceTypeDepartmentRepository incidenceTypeDeptRepo, IOrganizationRepository orgRepo)
 {
     _host                  = host;
     this.mapper            = mapper;
     this.repository        = repository;
     this.unitOfWork        = unitOfWork;
     _userRepo              = userRepo;
     _notificationRepo      = notificationRepo;
     _settingsRepo          = settingsRepo;
     _photoService          = photoService;
     _incidenceTypeDeptRepo = incidenceTypeDeptRepo;
     _orgRepo               = orgRepo;
 }
 public CompanyDefaultService(IHazardRepository hazardRepository,
                              IPeopleAtRiskRepository peopleAtRiskRepository,
                              IUserForAuditingRepository userForAuditingRepository,
                              IHazardTypeRepository hazardTypeRepository,
                              IMultiHazardRiskAssessmentRepository multiHazardRiskAssessmentRepository,
                              IFireSafetyControlMeasureRepository fireSafetyControlMeasureRepository,
                              ISourceOfIgnitionRepository sourceOfIgnitionRepository,
                              ISourceOfFuelRepository sourceOfFuelRepository,
                              IInjuryRepository injuryRepository,
                              IRiskAssessmentRepository riskAssessmentRepository,
                              IPeninsulaLog log)
 {
     _hazardRepository = hazardRepository;
     _peopleAtRiskRepository = peopleAtRiskRepository;
     _userForAuditingRepository = userForAuditingRepository;
     _log = log;
     _sourceOfFuelRepository = sourceOfFuelRepository;
     _hazardTypeRepository = hazardTypeRepository;
     _multiHazardRiskAssessmentRepository = multiHazardRiskAssessmentRepository;
     _fireSafetyControlMeasureRepository = fireSafetyControlMeasureRepository; 
     _sourceOfIgnitionRepository = sourceOfIgnitionRepository;
     _injuryRepository = injuryRepository;
     _riskAssessmentRepository = riskAssessmentRepository;
 }
 public HazardSaveTask(ICompanyDefaultService companyDefaultService, IHazardRepository hazardRepository, IDoesCompanyDefaultAlreadyExistGuard companyDefaultAlreadyExistGuard)
     : base(companyDefaultService, companyDefaultAlreadyExistGuard)
 {
     _hazardRepository = hazardRepository;
 }
 public HazardManager(IHazardRepository hazardRepository)
 {
     this.hazardRepository = hazardRepository;
 }