private AppointmentRepo(IPersistable persistable, List <User> users, List <Department> departments)
        {
            _persistable = persistable;

            _appointments = _persistable.GetAppointments(users, departments);

            _updateAppointmentNotification = new AppointmentNotification(_appointments, this, _persistable);
        }
 public void StopRunning()
 {
     AppointmentNotification.StopThread();
     UpdateFromDatabase.StopThread();
 }