Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DIConnectBot"/> class.
 /// </summary>
 /// <param name="logger">Instance to send logs to the Application Insights service.</param>
 /// <param name="teamsDataCapture">Teams data capture service.</param>
 /// <param name="employeeResourceGroupRepository">Instance of employee resource group repository.</param>
 /// <param name="teamsFileUpload">Teams file upload service.</param>
 /// <param name="teamNotification">Send team notification service.</param>
 /// <param name="knowledgeBaseResponse">Knowledge base response instance.</param>
 /// <param name="feedbackDataRepository">Feedback data repository instance.</param>
 /// <param name="notificationCardHelper">Notification card helper instance.</param>
 /// <param name="botOptions">A set of key/value application bot configuration properties.</param>
 /// <param name="localizer">Localization service.</param>
 /// <param name="cardHelper">Instance of class that handles adaptive card helper methods.</param>
 /// <param name="teamUserPairUpMappingRepository">Instance of team pair-up repository to access user pair-up matches.</param>
 /// <param name="userTeamMappingsHelper">Instance of helper for user mappings for a Team.</param>
 public DIConnectBot(
     ILogger <DIConnectBot> logger,
     TeamsDataCapture teamsDataCapture,
     EmployeeResourceGroupRepository employeeResourceGroupRepository,
     TeamsFileUpload teamsFileUpload,
     KnowledgeBaseResponse knowledgeBaseResponse,
     FeedbackDataRepository feedbackDataRepository,
     NotificationCardHelper notificationCardHelper,
     IOptions <BotOptions> botOptions,
     IStringLocalizer <Strings> localizer,
     AdminTeamNotifier teamNotification,
     TeamUserPairUpMappingRepository teamUserPairUpMappingRepository,
     CardHelper cardHelper,
     UserTeamMappingsHelper userTeamMappingsHelper)
 {
     this.logger           = logger ?? throw new ArgumentNullException(nameof(logger));
     this.teamsDataCapture = teamsDataCapture ?? throw new ArgumentNullException(nameof(teamsDataCapture));
     this.employeeResourceGroupRepository = employeeResourceGroupRepository ?? throw new ArgumentNullException(nameof(employeeResourceGroupRepository));
     this.teamsFileUpload        = teamsFileUpload ?? throw new ArgumentNullException(nameof(teamsFileUpload));
     this.knowledgeBaseResponse  = knowledgeBaseResponse ?? throw new ArgumentNullException(nameof(knowledgeBaseResponse));
     this.feedbackDataRepository = feedbackDataRepository ?? throw new ArgumentNullException(nameof(feedbackDataRepository));
     this.notificationCardHelper = notificationCardHelper ?? throw new ArgumentNullException(nameof(notificationCardHelper));
     this.botOptions             = botOptions ?? throw new ArgumentNullException(nameof(botOptions));
     this.teamNotification       = teamNotification ?? throw new ArgumentNullException(nameof(teamNotification));
     this.localizer  = localizer ?? throw new ArgumentNullException(nameof(localizer));
     this.botOptions = botOptions ?? throw new ArgumentNullException(nameof(botOptions));
     this.teamUserPairUpMappingRepository = teamUserPairUpMappingRepository ?? throw new ArgumentNullException(nameof(teamUserPairUpMappingRepository));
     this.cardHelper             = cardHelper ?? throw new ArgumentNullException(nameof(cardHelper));
     this.userTeamMappingsHelper = userTeamMappingsHelper ?? throw new ArgumentNullException(nameof(userTeamMappingsHelper));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetActivePairUpUsersActivity"/> class.
 /// </summary>
 /// <param name="usersService">The users service.</param>
 /// <param name="teamUserPairUpMappingRepository">Team user pair-up mapping repository.</param>
 /// <param name="employeeResourceGroupRepository">The employee resource group repository.</param>
 public GetActivePairUpUsersActivity(
     IUsersService usersService,
     TeamUserPairUpMappingRepository teamUserPairUpMappingRepository,
     EmployeeResourceGroupRepository employeeResourceGroupRepository)
 {
     this.usersService = usersService ?? throw new ArgumentNullException(nameof(usersService));
     this.teamUserPairUpMappingRepository = teamUserPairUpMappingRepository ?? throw new ArgumentNullException(nameof(teamUserPairUpMappingRepository));
     this.employeeResourceGroupRepository = employeeResourceGroupRepository ?? throw new ArgumentNullException(nameof(employeeResourceGroupRepository));
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SyncPairUpMembersActivity"/> class.
 /// </summary>
 /// <param name="memberService">Teams member service.</param>
 /// <param name="appSettingsService">App settings service.</param>
 /// <param name="teamUserPairUpMappingRepository">Team user pair-up mapping repository.</param>
 /// <param name="options">A set of key/value application configuration properties for application settings.</param>
 public SyncPairUpMembersActivity(
     ITeamMembersService memberService,
     IAppSettingsService appSettingsService,
     TeamUserPairUpMappingRepository teamUserPairUpMappingRepository,
     IOptions <ConfidentialClientApplicationOptions> options)
 {
     this.memberService      = memberService ?? throw new ArgumentNullException(nameof(memberService));
     this.appSettingsService = appSettingsService ?? throw new ArgumentNullException(nameof(appSettingsService));
     this.teamUserPairUpMappingRepository = teamUserPairUpMappingRepository ?? throw new ArgumentNullException(nameof(teamUserPairUpMappingRepository));
     this.options = options ?? throw new ArgumentNullException(nameof(options));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserTeamMappingsHelper"/> class.
 /// </summary>
 /// <param name="teamUserPairupMappingRepository">Instance of team pair-up repository to access user pair-up matches.</param>
 /// <param name="employeeResourceGroupRepository">Instance of employee resource group repository to access resource group details.</param>
 /// <param name="cardHelper">Instance of class that handles user pair-up matches card helper methods.</param>
 /// <param name="localizer">The current culture's string localizer.</param>
 public UserTeamMappingsHelper(
     TeamUserPairUpMappingRepository teamUserPairupMappingRepository,
     EmployeeResourceGroupRepository employeeResourceGroupRepository,
     CardHelper cardHelper,
     IStringLocalizer <Strings> localizer)
 {
     this.teamUserPairupMappingRepository = teamUserPairupMappingRepository ?? throw new ArgumentNullException(nameof(teamUserPairupMappingRepository));
     this.employeeResourceGroupRepository = employeeResourceGroupRepository ?? throw new ArgumentNullException(nameof(employeeResourceGroupRepository));
     this.cardHelper = cardHelper ?? throw new ArgumentNullException(nameof(cardHelper));
     this.localizer  = localizer ?? throw new ArgumentNullException(nameof(localizer));
 }