예제 #1
0
 public TeamMetaAppService(
     ICache cache,
     IGitApiService gitApi,
     IIterationsApiService iterationsApi,
     IProjectsApiService projectsApi,
     IQueriesApiService queriesApi,
     ITeamsApiService teamsApi,
     IWorkApiService workApi)
 {
     _cache         = cache ?? throw new ArgumentNullException(nameof(cache));
     _gitApi        = gitApi ?? throw new ArgumentNullException(nameof(gitApi));
     _iterationsApi = iterationsApi ?? throw new ArgumentNullException(nameof(iterationsApi));
     _projectsApi   = projectsApi ?? throw new ArgumentNullException(nameof(projectsApi));
     _queriesApi    = queriesApi ?? throw new ArgumentNullException(nameof(queriesApi));
     _teamsApi      = teamsApi ?? throw new ArgumentNullException(nameof(teamsApi));
     _workApi       = workApi ?? throw new ArgumentNullException(nameof(workApi));
 }
예제 #2
0
        public MetaController(
            AppSettings appSettings,
            IProjectsApiService projectsApi,
            IQueriesApiService queriesApi,
            ITeamsApiService teamsApi,
            IWorkApiService workApi)
            : base(appSettings, workApi)
        {
            if (appSettings == null)
            {
                throw new ArgumentNullException(nameof(appSettings));
            }
            if (workApi == null)
            {
                throw new ArgumentNullException(nameof(workApi));
            }

            _projectsApi = projectsApi ?? throw new ArgumentNullException(nameof(projectsApi));
            _queriesApi  = queriesApi ?? throw new ArgumentNullException(nameof(queriesApi));
            _teamsApi    = teamsApi ?? throw new ArgumentNullException(nameof(teamsApi));
        }