示例#1
0
        public async Task AddAndGetSlideComment()
        {
            var userId  = Guid.NewGuid().ToString();
            var slideId = Guid.NewGuid();

            var comment = await commentsRepo.AddCommentAsync(userId, "courseId", slideId, -1, false, "Comment text").ConfigureAwait(false);

            var comments = await commentsRepo.GetSlideCommentsAsync("courseId", slideId).ConfigureAwait(false);

            Assert.AreEqual(1, comments.Count);
            CollectionAssert.AreEqual(new List <Comment> {
                comment
            }, comments);
        }