Exemplo n.º 1
0
        public WorkController(
            AppSettings appSettings,
            IIterationsApiService iterationsApi,
            IWorkApiService workApi,
            ITeamsApiService teamsApi,
            WorkActivityAppService workActivityAppService,
            WorkIterationAppService workIterationAppService)
            : base(appSettings, workApi)
        {
            if (appSettings == null)
            {
                throw new ArgumentNullException(nameof(appSettings));
            }
            if (workApi == null)
            {
                throw new ArgumentNullException(nameof(workApi));
            }

            _iterationsApi          = iterationsApi ?? throw new ArgumentNullException(nameof(iterationsApi));
            _teamsApi               = teamsApi ?? throw new ArgumentNullException(nameof(teamsApi));
            _workActivityAppService = workActivityAppService ??
                                      throw new ArgumentNullException(nameof(workActivityAppService));
            _workIterationAppService = workIterationAppService ??
                                       throw new ArgumentNullException(nameof(workIterationAppService));
        }
Exemplo n.º 2
0
        public WorkController(
            AppSettings appSettings,
            IMapper mapper,
            IWorkApiService workApi,
            WorkIterationAppService workIterationAppService,
            WorkActivityAppService workActivityAppService,
            WorkLeaderboardAppService workLeaderboardAppService)
            : base(appSettings, workApi)
        {
            if (appSettings == null)
            {
                throw new ArgumentNullException(nameof(appSettings));
            }

            _mapper  = mapper ?? throw new ArgumentNullException(nameof(mapper));
            _workApi = workApi ?? throw new ArgumentNullException(nameof(workApi));
            _workActivityAppService = workActivityAppService ??
                                      throw new ArgumentNullException(nameof(workActivityAppService));
            _workIterationAppService = workIterationAppService ??
                                       throw new ArgumentNullException(nameof(workIterationAppService));
            _workLeaderboardAppService = workLeaderboardAppService ??
                                         throw new ArgumentNullException(nameof(workLeaderboardAppService));
        }