public void Add_Poll_Check() { setUpPoll(); Assert.That(PollController.FindPoll(question), Is.EqualTo(true)); File.Delete(Constants.pollPath); }
public async void EndPollNote(PollSchema poll) { bool timerexists = PollController.FindPoll(poll.Question); if (timerexists == true) { await ReplyAsync($"id: {poll.Id} - '{poll.Question}' has finished \r Yes Votes: {poll.Yes} \r No Votes: {poll.No}"); PollController.stopPollRunning(poll.Question); this.timer.Dispose(); } else { this.timer.Dispose(); } }