public PsaReportService( IPsaSummaryService summaryService, IOrgStructureReference orgStructReference, //IPsaReportRepository reportRepository, ITenantEntityAccessChecker tenantEntityAccessChecker, ITenantIdProvider tenantIdProvider, ITimeService timeService ) { _summaryService = summaryService; // _reportRepository = reportRepository; _orgStructReference = orgStructReference; _tenantEntityAccessChecker = tenantEntityAccessChecker; _tenantId = tenantIdProvider.GetTenantId(); _timeService = timeService; }
public RusHydroInspectionHandler(IInspectionService inspections, ITestService tests, IOrgStructureReference orgStructRef, IPsaSummaryService summarySvc, IDepartmentPsaReportService deptPsaReportSvc, IHttpContextAccessor httpContextAccessor, ILogger <RusHydroInspectionHandler> logger ) { _inspectionService = inspections; _testService = tests; _orgStructRef = orgStructRef; _summaryService = summarySvc; _departmentPsaReportService = deptPsaReportSvc; _logger = logger; var hostString = httpContextAccessor.HttpContext.Request.Host; _environmentId = hostString.Value ?? "psk-online/unknown"; }
public PsaSummaryController(IPsaSummaryService psaSummaryService) { _mapper = AutoMapperConfig.Instance.CreateMapper(); _psaSummaryService = psaSummaryService; }