public void UnlikeAnswer_UserDidNotLikeAnswer_ShouldReturnBadRequestErrorMessageResult()
        {
            _unitOfWork.Setup(
                u => u.AnswerLikeRepository.SingleOrDefault(It.IsAny <Expression <Func <AnswerLike, bool> > >(),
                                                            It.IsAny <string>()))
            .Returns(() => null);

            var result = _controller.UnlikeAnswer(_answer.Id);

            Assert.That(result, Is.TypeOf <BadRequestErrorMessageResult>());
        }
        public void UnlikeAnswer_WhenCalled_ShouldRemoveLikeAnswerFromDatabase()
        {
            var question = _context.AddTestQuestionToDatabase();
            var answer   = _context.AddTestAnswerToDatabase(question.Id);

            _context.AddTestAnswerLikeToDatabase(answer.Id);

            var result = _controller.UnlikeAnswer(answer.Id);

            Assert.That(_contextAfterAction.AnswerLikes.Count(), Is.EqualTo(0));
        }