Example #1
0
 public HomeController()
 {
     _departmentDao = new DepartmentDao(SiteSettings.RepositoryPath);
     _departmentServices = new DepartmentServices();
     _cakeScheduleDao = new CakeScheduleDao(SiteSettings.RepositoryPath);
     _cakeScheduleService = new CakeScheduleServices();
 }
Example #2
0
 public HomeController(IDepartmentDao departmentDao, IDepartmentServices departmentServices,
     ICakeScheduleDao cakeScheduleDao, ICakeScheduleServices cakeScheduleServices)
 {
     _departmentDao = departmentDao;
     _departmentServices = departmentServices;
     _cakeScheduleDao = cakeScheduleDao;
     _cakeScheduleService = cakeScheduleServices;
 }
Example #3
0
        public StartPageForm(IDepartmentDao departmentDao, IDepartmentServices departmentServices,
            ICakeScheduleDao cakeScheduleDao, ICakeScheduleServices cakeScheduleServices)
        {
            _departmentDao = departmentDao;
            _departmentServices = departmentServices;
            _cakeScheduleDao = cakeScheduleDao;
            _cakeScheduleServices = cakeScheduleServices;

            BuildStartPage();
        }
 public CakeScheduleService()
 {
     InitializeComponent();
     _mailService = new MailService(_departmentServices, _appConfigReader, DateTime.Now.Date);
     _cakeSheduleDao = new CakeScheduleDao(_appConfigReader.RepositoryPath);
     _departmentDao = new DepartmentDao(_appConfigReader.RepositoryPath);
     _scheduleWorker = new ScheduleWorker(_cakeScheduleServices, _departmentServices, _mailService,
                                          _cakeSheduleDao, _departmentDao, _appConfigReader);
     _serviceLogger = new ServiceLogger(_appConfigReader.LogPath);
     _scheduleWorker.CakeScheduleFinished += ScheduleFinished;
 }
Example #5
0
        public ScheduleWorker(ICakeScheduleServices cakeScheduleServices, IDepartmentServices departmentServices,
            IMailService mailService,
            ICakeScheduleDao cakeScheduleDao, IDepartmentDao departmentDao,
            IAppConfigReader appConfigReader)
        {
            _cakeScheduleServices = cakeScheduleServices;
            _departmentServices = departmentServices;
            _mailService = mailService;
            _cakeScheduleDao = cakeScheduleDao;
            _departmentDao = departmentDao;
            _appConfigReader = appConfigReader;

            _timer = new Timer(_appConfigReader.TimerRunInterval);
            _timer.Elapsed += Timer_Elapsed;
        }
 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));
 }
 public DepartmentBus(IDepartmentDao departmentDao, ILogger <DepartmentBus> logger)
 {
     this._departmentDao = departmentDao;
     this._logger        = logger;
 }
Example #8
0
 public DepartmentBLL()
 {
     dal = new ImplDepartment()
     {
     };
 }
 public void SetUp()
 {
     _departmentDaoMock = new DepartmentDaoStub();
     _departmentController = new DepartmentController(_departmentDaoMock);
 }
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="dao">部門用DAO</param>
 public DepartmentEditServiceImpl(IDepartmentDao dao)
 {
     _dao = dao;
 }
Example #11
0
 public Dep_PosController(SqlDepartment depRepository, SqlPosition posRepository)
 {
     this._depRepository = depRepository;
     this._posRepository = posRepository;
 }
 public DepartmentController(IDepartmentDao departmentsDao)
 {
     _departmentsDao = departmentsDao;
 }
 public DepartmentController()
 {
     _departmentsDao = new DepartmentDao(SiteSettings.RepositoryPath);
 }