Esempio n. 1
0
        public void SendUnconfirmedAppointmentsToEmployees
            (IConfiguration config, AppointmentService appointmentService, PhoneNumberService phoneNumberService)
        {
            DateTime dateDelay = DateConverter.CurrentEasternDateTime().AddDays(1);
            var      unconfirmedAppointment = appointmentService.GetUnconfirmedAppointments(phoneNumberService);

            if (unconfirmedAppointment.Count() > 0)
            {
                EmailSender.SendUnconfirmedAppointmentsToEmployees(unconfirmedAppointment, config);
            }
        }
Esempio n. 2
0
        public bool SendNewAppointments(IConfiguration configuration, AppointmentService appointmentService, PhoneNumberService phoneService)
        {
            var appointments = appointmentService.GetNewAppointments(phoneService);

            return(EmailSender.SendNewAppointmentsToEmployees(appointments, configuration));
        }