public HomeController() { _departmentDao = new DepartmentDao(SiteSettings.RepositoryPath); _departmentServices = new DepartmentServices(); _cakeScheduleDao = new CakeScheduleDao(SiteSettings.RepositoryPath); _cakeScheduleService = new CakeScheduleServices(); }
public HomeController(IDepartmentDao departmentDao, IDepartmentServices departmentServices, ICakeScheduleDao cakeScheduleDao, ICakeScheduleServices cakeScheduleServices) { _departmentDao = departmentDao; _departmentServices = departmentServices; _cakeScheduleDao = cakeScheduleDao; _cakeScheduleService = cakeScheduleServices; }
public StartPageForm(IDepartmentDao departmentDao, IDepartmentServices departmentServices, ICakeScheduleDao cakeScheduleDao, ICakeScheduleServices cakeScheduleServices) { _departmentDao = departmentDao; _departmentServices = departmentServices; _cakeScheduleDao = cakeScheduleDao; _cakeScheduleServices = cakeScheduleServices; BuildStartPage(); }
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; }