public void GetAllComment_ReturnsZeroResources_WhenDBIsEmpty()
        {
            //Arrange
            iCommentService.Setup(serv =>
                                  serv.GetAllComments()).Returns(GetComments(0));

            var controller = new CommentController(iCommentService.Object, mapper);

            //Act
            var result = controller.GetAllComments();

            //Assert
            Assert.IsType <OkObjectResult>(result.Result);
        }
        public void GetAllComment_ReturnsOneResource_WhenDBHasOneResource()
        {
            //Arrange
            iCommentService.Setup(serv =>
                                  serv.GetAllComments()).Returns(GetComments(1));

            var controller = new CommentController(iCommentService.Object, mapper);

            //Act
            var result = controller.GetAllComments();

            //Assert
            var okResult = result.Result as OkObjectResult;

            var comments = okResult.Value as List <CommentReadDTO>;

            Assert.Single(comments);
        }