Exemple #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public OpportunityHelpers(
            ILogger <OpportunityHelpers> logger,
            IOptions <AppOptions> appOptions,
            UserProfileHelpers userProfileHelpers,
            IRoleRepository roleRepository,
            CardNotificationService cardNotificationService,
            TemplateHelpers templateHelpers,
            ICheckListProcessService checkListProcessService,
            ICustomerDecisionProcessService customerDecisionProcessService,
            ICustomerFeedbackProcessService customerFeedbackProcessService,
            IAuthorizationService authorizationService,
            IPermissionRepository permissionRepository,
            GraphUserAppService graphUserAppService,
            IUserContext userContext,
            IProposalDocumentProcessService proposalStatusProcessService)
        {
            Guard.Against.Null(logger, nameof(logger));
            Guard.Against.Null(appOptions, nameof(appOptions));
            Guard.Against.Null(userProfileHelpers, nameof(userProfileHelpers));
            Guard.Against.Null(roleRepository, nameof(roleRepository));
            Guard.Against.Null(graphUserAppService, nameof(graphUserAppService));
            Guard.Against.Null(cardNotificationService, nameof(cardNotificationService));
            Guard.Against.Null(templateHelpers, nameof(templateHelpers));
            Guard.Against.Null(checkListProcessService, nameof(checkListProcessService));
            Guard.Against.Null(customerDecisionProcessService, nameof(customerDecisionProcessService));
            Guard.Against.Null(customerFeedbackProcessService, nameof(customerFeedbackProcessService));
            Guard.Against.Null(proposalStatusProcessService, nameof(proposalStatusProcessService));
            Guard.Against.Null(authorizationService, nameof(authorizationService));
            Guard.Against.Null(permissionRepository, nameof(permissionRepository));

            _graphUserAppService = graphUserAppService;
            _logger                         = logger;
            _appOptions                     = appOptions.Value;
            _userProfileHelpers             = userProfileHelpers;
            _roleRepository                 = roleRepository;
            _cardNotificationService        = cardNotificationService;
            _templateHelpers                = templateHelpers;
            _checkListProcessService        = checkListProcessService;
            _customerDecisionProcessService = customerDecisionProcessService;
            _customerFeedbackProcessService = customerFeedbackProcessService;
            _proposalStatusProcessService   = proposalStatusProcessService;
            _authorizationService           = authorizationService;
            _permissionRepository           = permissionRepository;
            _userContext                    = userContext;
        }
Exemple #2
0
        public OpportunityFactory(
            ILogger <OpportunityFactory> logger,
            IOptionsMonitor <AppOptions> appOptions,
            GraphSharePointAppService graphSharePointAppService,
            GraphUserAppService graphUserAppService,
            CardNotificationService cardNotificationService,
            INotesService notesService,
            ICheckListProcessService checkListProcessService,
            ICustomerDecisionProcessService customerDecisionProcessService,
            ICustomerFeedbackProcessService customerFeedbackProcessService,
            IProposalDocumentProcessService proposalStatusProcessService,
            INewOpportunityProcessService newOpportunityProcessService,
            IDashboardService dashboardService,
            IAuthorizationService authorizationService,
            IPermissionRepository permissionRepository,
            IStartProcessService startProcessService,
            IDashboardAnalysis dashboardAnalysis,
            GraphTeamsAppService graphTeamsAppService,
            IAddInHelper addInHelper,
            GraphTeamsOnBehalfService graphTeamsOnBeahalfService,
            IMemberService memberService,
            ITeamChannelService teamChannelService,
            IAzureKeyVaultService azureKeyVaultService) : base(logger, appOptions)
        {
            Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
            Guard.Against.Null(graphUserAppService, nameof(graphUserAppService));
            Guard.Against.Null(cardNotificationService, nameof(cardNotificationService));
            Guard.Against.Null(notesService, nameof(notesService));
            Guard.Against.Null(checkListProcessService, nameof(checkListProcessService));
            Guard.Against.Null(customerDecisionProcessService, nameof(customerDecisionProcessService));
            Guard.Against.Null(customerFeedbackProcessService, nameof(customerFeedbackProcessService));
            Guard.Against.Null(proposalStatusProcessService, nameof(proposalStatusProcessService));
            Guard.Against.Null(newOpportunityProcessService, nameof(newOpportunityProcessService));
            Guard.Against.Null(startProcessService, nameof(startProcessService));
            Guard.Against.Null(dashboardService, nameof(dashboardService));
            Guard.Against.Null(dashboardAnalysis, nameof(dashboardAnalysis));
            Guard.Against.Null(authorizationService, nameof(authorizationService));
            Guard.Against.Null(permissionRepository, nameof(permissionRepository));
            Guard.Against.Null(graphTeamsAppService, nameof(graphTeamsAppService));
            Guard.Against.Null(addInHelper, nameof(addInHelper));

            _graphSharePointAppService = graphSharePointAppService;
            _graphUserAppService       = graphUserAppService;

            _cardNotificationService        = cardNotificationService;
            _checkListProcessService        = checkListProcessService;
            _customerDecisionProcessService = customerDecisionProcessService;
            _customerFeedbackProcessService = customerFeedbackProcessService;
            _proposalStatusProcessService   = proposalStatusProcessService;
            _newOpportunityProcessService   = newOpportunityProcessService;
            _startProcessService            = startProcessService;
            _dashboardService          = dashboardService;
            _authorizationService      = authorizationService;
            _permissionRepository      = permissionRepository;
            _graphTeamsAppService      = graphTeamsAppService;
            _dashboardAnalysis         = dashboardAnalysis;
            _addInHelper               = addInHelper;
            _graphTeamsOnBehalfService = graphTeamsOnBeahalfService;
            _azureKeyVaultService      = azureKeyVaultService;

            _memberService      = memberService;
            _teamChannelService = teamChannelService;
            _notesService       = notesService;
        }