public DepartmentLoadService(
            IDepartmentLoadDao dao,
            DepartmentService departmentService,
            DisciplineTitleService disciplineTitleService,
            StudentGroupService studentGroupService,
            GroupDisciplineLoadService groupDisciplineLoadService,
            StudyLoadService studyLoadService,
            StudyDirectionService studyDirectionService,
            FileService fileService,
            IGenerateDepartmentLoad generateStrategy,
            ILogger <DepartmentLoadService> logger
            )
        {
            _dao = dao ?? throw new ArgumentException(nameof(dao));
            _departmentService          = departmentService ?? throw new ArgumentException(nameof(departmentService));
            _disciplineTitleService     = disciplineTitleService ?? throw new ArgumentException(nameof(disciplineTitleService));
            _studentGroupService        = studentGroupService ?? throw new ArgumentException(nameof(studentGroupService));
            _groupDisciplineLoadService = groupDisciplineLoadService ?? throw new ArgumentException(nameof(groupDisciplineLoadService));
            _studyLoadService           = studyLoadService ?? throw new ArgumentException(nameof(studyLoadService));
            _studyDirectionService      = studyDirectionService ?? throw new ArgumentException(nameof(studyDirectionService));
            _fileService = fileService ?? throw new ArgumentException(nameof(fileService));

            _generateStrategy = generateStrategy ?? throw new ArgumentException(nameof(generateStrategy));

            _logger = logger ?? throw new ArgumentException(nameof(logger));
        }
예제 #2
0
        public GroupDisciplineLoadService(
            IGroupDisciplineLoadDao groupDisciplineLoadDao,
            StudyLoadService studyLoadService,
            DisciplineTitleService disciplineTitleService,
            StudentGroupService studentGroupService
            )
        {
            _groupDisciplineLoadDao = groupDisciplineLoadDao ?? throw new ArgumentException(nameof(groupDisciplineLoadDao));

            _studyLoadService       = studyLoadService ?? throw new ArgumentException(nameof(studyLoadService));
            _disciplineTitleService = disciplineTitleService ?? throw new ArgumentException(nameof(disciplineTitleService));
            _studentGroupService    = studentGroupService ?? throw new ArgumentException(nameof(studentGroupService));
        }
예제 #3
0
 public DepartmentService(
     IDepartmentDao dao,
     RoleInDepartmentService roleInDepartmentService,
     UserRoleInDepartmentService userRoleInDepartmentService,
     DisciplineTitleService disciplineTitleService,
     StudyDirectionService studyDirectionService,
     StudentGroupService studentGroupService,
     ILogger logger)
 {
     _dao = dao ?? throw new ArgumentNullException(nameof(dao));
     _roleInDepartmentService     = roleInDepartmentService ?? throw new ArgumentException(nameof(roleInDepartmentService));
     _userRoleInDepartmentService = userRoleInDepartmentService ?? throw new ArgumentException(nameof(userRoleInDepartmentService));
     _discplineTitleService       = disciplineTitleService ?? throw new ArgumentException(nameof(disciplineTitleService));
     _studyDirectionService       = studyDirectionService ?? throw new ArgumentException(nameof(studyDirectionService));
     _studentGroupService         = studentGroupService ?? throw new ArgumentException(nameof(studentGroupService));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }