Ejemplo n.º 1
0
 public TeamHoursService(
     IGraphAuthProvider authProvider, GraphAppSharePointService graphAppSharePointService,
     IUserContext userContext,
     TimeTrackerOptions timeTrackerOptions, TeamHoursRepository teamHoursRepository) : base(authProvider, userContext)
 {
     _timeTrackerOptions  = timeTrackerOptions ?? throw new ArgumentNullException(nameof(timeTrackerOptions));
     _teamHoursRepository = teamHoursRepository ?? throw new ArgumentNullException(nameof(teamHoursRepository));
 }
Ejemplo n.º 2
0
 public AnalyticsService(
     TimeTrackerOptions timeTrackerOptions,
     GraphAppSharePointService graphSharePointService
     )
 {
     _timeTrackerOptions     = timeTrackerOptions ?? throw new ArgumentNullException(nameof(timeTrackerOptions));
     _graphSharePointService = graphSharePointService ?? throw new ArgumentNullException(nameof(graphSharePointService));
 }
Ejemplo n.º 3
0
 public RefreshHoursTask(
     TimeTrackerOptions timeTrackerOptions,
     GraphAppUserService graphUserService,
     GraphAppSharePointService graphSharePointService,
     Microsoft.Azure.WebJobs.ExecutionContext context)
 {
     _timeTrackerOptions     = timeTrackerOptions ?? throw new ArgumentNullException(nameof(timeTrackerOptions));
     _graphUserService       = graphUserService ?? throw new ArgumentNullException(nameof(graphUserService));
     _graphSharePointService = graphSharePointService ?? throw new ArgumentNullException(nameof(graphSharePointService));
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
        public AutoSubmitWorkHoursTask(
            TimeTrackerOptions timeTrackerOptions,
            GraphAppUserService graphUserService,
            GraphAppSharePointService graphSharePointService)
        {
            _timeTrackerOptions     = timeTrackerOptions ?? throw new ArgumentNullException(nameof(timeTrackerOptions));
            _graphUserService       = graphUserService ?? throw new ArgumentNullException(nameof(graphUserService));
            _graphSharePointService = graphSharePointService ?? throw new ArgumentNullException(nameof(graphSharePointService));

            _schedule = _timeTrackerOptions.CutoffDayEmployee;
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Constructor
 /// </summary>
 public WorkHoursWorkflowService(
     TimeTrackerOptions timeTrackerOptions,
     GraphAppUserService graphUserService,
     GraphAppSharePointService graphSharePointService,
     WorkflowServiceHelper workflowServiceHelper,
     string objectIdentifier)
 {
     _timeTrackerOptions     = timeTrackerOptions ?? throw new ArgumentNullException(nameof(timeTrackerOptions));
     _graphUserService       = graphUserService ?? throw new ArgumentNullException(nameof(graphUserService));
     _graphSharePointService = graphSharePointService ?? throw new ArgumentNullException(nameof(graphSharePointService));
     _workflowServiceHelper  = workflowServiceHelper ?? throw new ArgumentNullException(nameof(workflowServiceHelper));
     _objectIdentifier       = objectIdentifier;
 }
        /// <summary>
        /// Constructor
        /// </summary>
        public TeamHoursWorkflowService(
            TimeTrackerOptions timeTrackerOptions,
            GraphAppUserService graphUserService,
            GraphAppSharePointService graphSharePointService,
            WorkflowServiceHelper workflowServiceHelper,
            UserProfileRepository userProfileRepository)
        {
            _timeTrackerOptions     = timeTrackerOptions ?? throw new ArgumentNullException(nameof(timeTrackerOptions));
            _graphUserService       = graphUserService ?? throw new ArgumentNullException(nameof(graphUserService));
            _graphSharePointService = graphSharePointService ?? throw new ArgumentNullException(nameof(graphSharePointService));
            _workflowServiceHelper  = workflowServiceHelper ?? throw new ArgumentNullException(nameof(workflowServiceHelper));

            _userProfileRepository = userProfileRepository ?? throw new ArgumentNullException(nameof(userProfileRepository));
        }