public OpportunityFactory(
            ILogger <OpportunityFactory> logger,
            IOptionsMonitor <AppOptions> appOptions,
            GraphSharePointAppService graphSharePointAppService,
            GraphUserAppService graphUserAppService,
            IUserProfileRepository userProfileRepository,
            IRoleMappingRepository roleMappingRepository,
            CardNotificationService cardNotificationService,
            IUserContext userContext,
            CheckListProcessService checkListProcessService,
            CustomerFeedbackProcessService customerFeedbackProcessService,
            CustomerDecisionProcessService customerDecisionProcessService,
            ProposalStatusProcessService proposalStatusProcessService,
            NewOpportunityProcessService newOpportunityProcessService,
            IDashboardService dashboardService,
            IAuthorizationService authorizationService,
            IPermissionRepository permissionRepository,
            StartProcessService startProcessService,
            IDashboardAnalysis dashboardAnalysis,
            GraphTeamsAppService graphTeamsAppService,
            IAddInHelper addInHelper) : base(logger, appOptions)
        {
            Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
            Guard.Against.Null(graphUserAppService, nameof(graphUserAppService));
            Guard.Against.Null(userProfileRepository, nameof(userProfileRepository));
            Guard.Against.Null(roleMappingRepository, nameof(roleMappingRepository));
            Guard.Against.Null(cardNotificationService, nameof(cardNotificationService));
            Guard.Against.Null(userContext, nameof(userContext));
            Guard.Against.Null(checkListProcessService, nameof(checkListProcessService));
            Guard.Against.Null(customerDecisionProcessService, nameof(customerDecisionProcessService));
            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;
            _userProfileRepository     = userProfileRepository;
            _roleMappingRepository     = roleMappingRepository;
            _cardNotificationService   = cardNotificationService;
            _userContext                        = userContext;
            _checkListProcessService            = checkListProcessService;
            this.customerFeedbackProcessService = customerFeedbackProcessService;
            _customerDecisionProcessService     = customerDecisionProcessService;
            _proposalStatusProcessService       = proposalStatusProcessService;
            _newOpportunityProcessService       = newOpportunityProcessService;
            _startProcessService                = startProcessService;
            _dashboardService                   = dashboardService;
            _authorizationService               = authorizationService;
            _permissionRepository               = permissionRepository;
            _graphTeamsAppService               = graphTeamsAppService;
            _dashboardAnalysis                  = dashboardAnalysis;
            _addInHelper                        = addInHelper;
        }
Beispiel #2
0
        public TeamChannelService(
            ILogger <TeamChannelService> logger,
            IOptionsMonitor <AppOptions> appOptions,
            IAuthorizationService authorizationService,
            IPermissionRepository permissionRepository,
            Infrastructure.Services.GraphUserAppService graphUserAppService,
            Infrastructure.Services.GraphTeamsAppService graphTeamsAppService,
            Infrastructure.Services.GraphTeamsOnBehalfService graphTeamsOnBehalfService,
            IAddInHelper addInHelper,
            IConfiguration configuration,
            CardNotificationService cardNotificationService) : base(logger, appOptions)
        {
            Guard.Against.Null(logger, nameof(logger));
            Guard.Against.Null(appOptions, nameof(appOptions));
            Guard.Against.Null(cardNotificationService, nameof(cardNotificationService));
            Guard.Against.Null(authorizationService, nameof(authorizationService));
            Guard.Against.Null(permissionRepository, nameof(permissionRepository));

            Guard.Against.Null(graphUserAppService, nameof(graphUserAppService));
            Guard.Against.Null(graphTeamsAppService, nameof(graphTeamsAppService));
            Guard.Against.Null(graphTeamsOnBehalfService, nameof(graphTeamsOnBehalfService));
            Guard.Against.Null(addInHelper, nameof(addInHelper));


            var azureOptions = new AzureAdOptions();

            configuration.Bind("AzureAd", azureOptions);

            _graphUserAppService       = graphUserAppService;
            _cardNotificationService   = cardNotificationService;
            _authorizationService      = authorizationService;
            _permissionRepository      = permissionRepository;
            _graphTeamsAppService      = graphTeamsAppService;
            _graphTeamsOnBehalfService = graphTeamsOnBehalfService;
            _addInHelper = addInHelper;
            _baseUrl     = azureOptions.BaseUrl;
        }
Beispiel #3
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;
        }