コード例 #1
0
        public void Get_Reminder_Check()
        {
            File.Delete(Constants.remindMePath);

            var time = setUpUser();

            string answer = RemindMeController.GetReminders();

            Assert.AreEqual(answer, $"1, {userId}, {time}, {note} \r\n");

            File.Delete(Constants.remindMePath);
        }
コード例 #2
0
        public async Task GetReminders()
        {
            // Search the db for current reminders (active)
            string currentReminders = RemindMeController.GetReminders();

            if (currentReminders == "")
            {
                await ReplyAsync("There are no active reminders!");
            }
            else
            {
                await ReplyAsync(currentReminders);
            }
        }