示例#1
0
        public async void AddCommentValid()
        {
            await Trello.AddComment("5a3897ca92fdafbe29fc6877", "TestComment");

            Assert.True(Trello.CommentAdded);
        }
示例#2
0
        public async void AddCommentNullComment()
        {
            await Trello.AddComment("5a3897ca92fdafbe29fc6877", null);

            Assert.False(Trello.CommentAdded);
        }
示例#3
0
        public async void AddCommentNoId()
        {
            await Trello.AddComment("", "TestComment");

            Assert.False(Trello.CommentAdded);
        }
示例#4
0
        public async Task <IActionResult> AddComment(string id, string comment)
        {
            await Trello.AddComment(id, comment);

            return(RedirectToAction(nameof(Cards)));
        }