Esempio n. 1
0
        public async void AddCommentValid()
        {
            await Trello.AddComment("5a3897ca92fdafbe29fc6877", "TestComment");

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

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

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

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