public PrayerScheduler(PrayerDay prayerDay, IClock clock) { _clock = clock; _timer = new Timer(new TimerCallback(Tick), null, 1000 % DateTime.Now.Millisecond, 1000); _prayerDay = prayerDay; }
private void OnPrayerTime(PrayerDay day, PrayerType prayer) { PrayerTime?.Invoke(this, new PrayerTimeEventArgs(day, prayer)); }
public PrayerTimeEventArgs(PrayerDay day, PrayerType prayer) { Day = day; Prayer = prayer; }