internal void ShowReminder() { var todayReminders = GetTodaysReminders(); if (todayReminders == null || todayReminders.Count == 0) { return; } var todaysReminder = todayReminders.FirstOrDefault(); if (!MustShowReminder(todaysReminder)) { return; } ShowReminderNotification(); _splunkLogger.Log(new MonitorEvent { Description = "Kata Reminder", Logged = DateTime.Now }); }
public void Start() { _playerNotifier.DisplayMessage("Welcome to Katarai", "Katarai is a tool to help you do code katas. In this version the supported katas are Roy Osherove’s String Calculator kata." + "To the katas, select Practice from the System Tray menu – Katarai will open Visual Studio with a prepared solution to get you started and will track your progress as you code." + Environment.NewLine + Environment.NewLine + "Why is TDD important? It allows us to break the negative feedback loop and maintain a constant cost of change." + "Only by actively driving down the defects in our code are we able to deliver new functionality, and modify existing functionality with a reasonably constant cost of change." + Environment.NewLine + Environment.NewLine + "To configure Katarai’s options click Show Window in the System Tray menu." + Environment.NewLine + Environment.NewLine + "To view your previous kata attempt statistics, use the Statistics menu in the System Tray menu." ); _gameMonitor.StartMonitoring(); _splunkLogger.Log(new MonitorEvent { Description = "Katarai Started", Logged = DateTime.Now }); _kataFilesMonitor.Start(); _reminderTimer.Start(); _monitorTimer.Start(); }
private void LogEvent() { _splunkLogger.Log(new MonitorEvent { Description = "Katarai ticking", Logged = DateTime.Now }); }