Пример #1
0
        public void GetSurveyQuestionAsync_WhenSurveyQuestionNotFound_ReturnsErrorCode()
        {
            var response = _controller.GetSurveyQuestionAsync(_matchingGuid, _nonMatchingOptionGuid).Result;

            _questionService.Verify(repo => repo.GetQuestionById(_nonMatchingOptionGuid), Times.Exactly(1));
            Assert.IsType <NotFoundResult>(response);
        }