Beispiel #1
0
        public async void FilmCommentContentIsEmpty()
        {
            // Arrange
            bool        filmCommentResponse;
            FilmComment filmComment = new Domain.Entities.FilmComment()
            {
                Content     = "",
                UserId      = "0a92d309-7651-46df-bd7e-f9a9a51fe3be",
                FilmId      = 399566,
                CommentType = (Domain.Enums.CommentType) 1
            };

            // Act
            filmCommentResponse = await filmCommenService.SetComment(filmComment);

            //Assert
            Assert.False(filmCommentResponse);
        }
Beispiel #2
0
 public async Task <IActionResult> CommentFilm([FromBody] Domain.Entities.FilmComment comment)
 {
     return(Ok(await _filmCommentService.SetComment(comment)));
 }