Example #1
0
        public AttendanceLetterService(IAttendanceLetterCommands commands, IAttendanceLetterQueries queries, IStudentAbsencesForEmailService studentAbsencesForEmailService, ICalendarMembershipDaysQueries calendarQueries, IConfiguration config, IPdfProvider pdfProvider, ISchoolYearsService schoolYearService, IStudentExtraHoursService studentExtraHoursService, IHostingEnvironment env, ISchoolsService schoolsService, IStudentGeneralDataForDnaService studentGeneralDataForDnaService)
        {
            _commands = commands;
            _queries  = queries;
            _config   = config;
            _studentAbsencesForEmailService = studentAbsencesForEmailService;
            _calendarQueries          = calendarQueries;
            _pdfProvider              = pdfProvider;
            _schoolYearService        = schoolYearService;
            _studentExtraHoursService = studentExtraHoursService;
            _env = env;
            _studentGeneralDataForDnaService = studentGeneralDataForDnaService;
            _schoolsService = schoolsService;

            Day3Range  = _config.GetSection("Notifications:AttendanceLetter:3DayLetterRange").Get <int>();
            Day5Range  = _config.GetSection("Notifications:AttendanceLetter:5DayLetterRange").Get <int>();
            Day10Range = _config.GetSection("Notifications:AttendanceLetter:10DayLetterRange").Get <int>();
        }
Example #2
0
 public CampusNotificationProvider(IStudentAbsencesForEmailService service, IMessagingProvider messagingProvider, IHostingEnvironment env)
 {
     _service           = service;
     _messagingProvider = messagingProvider;
     _env = env;
 }