Exemplo n.º 1
0
        public void Add_Reminder_Check()
        {
            setUpUser();
            Assert.That(RemindMeController.FindReminder(note), Is.EqualTo(true));

            File.Delete(Constants.remindMePath);
        }
Exemplo n.º 2
0
        // 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");
            }
        }
Exemplo n.º 3
0
 public void Find_Reminder_Failed()
 {
     File.Delete(Constants.remindMePath);
     Assert.That(RemindMeController.FindReminder(note), Is.EqualTo(false));
 }