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));
        }
Exemple #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));
        }