Example #1
0
 public OpportunityFactory(
     ILogger <OpportunityFactory> logger,
     IOptions <AppOptions> appOptions,
     GraphSharePointAppService graphSharePointAppService,
     GraphUserAppService graphUserAppService,
     INotificationRepository notificationRepository,
     IUserProfileRepository userProfileRepository,
     IRoleMappingRepository roleMappingRepository,
     CardNotificationService cardNotificationService,
     IUserContext userContext) : base(logger, appOptions)
 {
     Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
     Guard.Against.Null(graphUserAppService, nameof(graphUserAppService));
     Guard.Against.Null(notificationRepository, nameof(notificationRepository));
     Guard.Against.Null(userProfileRepository, nameof(userProfileRepository));
     Guard.Against.Null(roleMappingRepository, nameof(roleMappingRepository));
     Guard.Against.Null(cardNotificationService, nameof(cardNotificationService));
     Guard.Against.Null(userContext, nameof(userContext));
     _graphSharePointAppService = graphSharePointAppService;
     _graphUserAppService       = graphUserAppService;
     _notificationRepository    = notificationRepository;
     _userProfileRepository     = userProfileRepository;
     _roleMappingRepository     = roleMappingRepository;
     _cardNotificationService   = cardNotificationService;
     _userContext = userContext;
 }
        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;
        }
Example #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;
        }