public void Delete_Reminder_End_Check() { setUpUser(); Assert.That(RemindMeController.DeleteReminderEnd(note), Is.EqualTo(true)); File.Delete(Constants.remindMePath); }
// Method to run when the timer is finished public async void ReplyWithNote(string userNote, string note) { // Check if the timer is still in the db bool timerExists = RemindMeController.FindReminder(note); //If the timer is still in the db awesome if (timerExists) { await ReplyAsync(userNote); RemindMeController.DeleteReminderEnd(note); _timer.Dispose(); } else { //End the instance of the timer _timer.Dispose(); //await ReplyAsync("THIS MESSAGE MEANS IT FKING WORKS"); } }