public GetAllFindingUseCase(
     IFindingRepository findingRepository,
     IMapper mapper,
     IReassignmentsFindingHistoryRepository reassignmentsFindingHistoryRepository,
     IHttpContextAccessor httpContextAccessor,
     IUserRepository userRepository)
 {
     _findingRepository = findingRepository;
     _mapper            = mapper;
     _reassignmentsFindingHistoryRepository = reassignmentsFindingHistoryRepository;
     _httpContextAccessor = httpContextAccessor;
     _userRepository      = userRepository;
 }
 public RejectReassignFinding(IFindingRepository findingRepository,
                              IReassignmentsFindingHistoryRepository reassignmentsFindingHistoryRepository,
                              IFindingStatesHistoryRepository findingStatesHistoryRepository,
                              IHubContext <FindingsHub> hub,
                              IOptions <EmailSettings> emailSettings
                              )
 {
     _findingRepository = findingRepository;
     _reassignmentsFindingHistoryRepository = reassignmentsFindingHistoryRepository;
     _findingStatesHistoryRepository        = findingStatesHistoryRepository;
     EmailAddresses = new List <string>();
     _emailSettings = emailSettings.Value;
     _hub           = hub;
 }
Example #3
0
 //private IHubContext<FindingsHub> _hub;
 public ApproveorRejectReassignment(
     IFindingRepository findingRepository,
     IWorkflowCore workflowCore,
     IReassignmentsFindingHistoryRepository reassignmentFindingHistoryRepository,
     IMapper mapper
     //IHubContext<FindingsHub> hub
     )
 {
     _findingRepository = findingRepository;
     _reassignmentsFindingHistoryRepository = reassignmentFindingHistoryRepository;
     _mapper       = mapper;
     _workflowCore = workflowCore;
     //_hub = hub;
 }
        //private IHubContext<FindingsHub> _hub;

        public RequestReassignUseCase(
            IFindingRepository findingRepository,
            IReassignmentsFindingHistoryRepository reassignmentFindingHistoryRepository,
            IWorkflowCore workflowCore,
            IMapper mapper,
            IHttpContextAccessor httpContextAccessor
            //IHubContext<FindingsHub> hub
            )
        {
            _findingRepository = findingRepository;
            _reassignmentsFindingHistoryRepository = reassignmentFindingHistoryRepository;
            _workflowCore        = workflowCore;
            _mapper              = mapper;
            _httpContextAccessor = httpContextAccessor;
            //_hub = hub;
        }
 public GenerateFindingReassignment(IFindingRepository findingRepository,
                                    IReassignmentsFindingHistoryRepository reassignmentsFindingHistoryRepository,
                                    IFindingStatesHistoryRepository findingStatesHistoryRepository,
                                    IFindingStateRepository findingStateRepository,
                                    IOptions <EmailSettings> emailSettings,
                                    IHubContext <FindingsHub> hub,
                                    IUserWorkflowRepository userWorkflowRepository)
 {
     _findingStateRepository = findingStateRepository;
     _findingRepository      = findingRepository;
     _reassignmentsFindingHistoryRepository = reassignmentsFindingHistoryRepository;
     _findingStatesHistoryRepository        = findingStatesHistoryRepository;
     EmailAddresses          = new List <string>();
     _emailSettings          = emailSettings.Value;
     _hub                    = hub;
     _userWorkflowRepository = userWorkflowRepository;
 }
Example #6
0
 public RequestReassignACUseCase(
     IFindingRepository findingRepository,
     IReassignmentsFindingHistoryRepository reassignmentFindingHistoryRepository,
     IWorkflowCore workflowCore,
     IMapper mapper,
     IHttpContextAccessor httpContextAccessor,
     IHubContext <FindingsHub> hub,
     ICorrectiveActionRepository correctiveActionRepository
     )
 {
     _findingRepository = findingRepository;
     _reassignmentsFindingHistoryRepository = reassignmentFindingHistoryRepository;
     _workflowCore        = workflowCore;
     _mapper              = mapper;
     _httpContextAccessor = httpContextAccessor;
     _hub = hub;
     _correctiveActionRepository = correctiveActionRepository;
 }
 public GetLastReassignment(IReassignmentsFindingHistoryRepository reassignmentFindingHistoryRepository, IMapper mapper)
 {
     _reassignmentsFindingHistoryRepository = reassignmentFindingHistoryRepository;
     _mapper = mapper;
 }