Ejemplo n.º 1
0
        public void UpdateFeedbackQuestions()
        {
            var question = QuestionsMockup.GetFeedbackQuestionsList();

            questionsRepository.Setup(m => m.UpdateFeedbackQuestions(question[0])).Returns(question[0]);
            var result = questionsController.UpdateFeedbackQuestions(question[0]);

            Assert.NotNull(result);
        }
Ejemplo n.º 2
0
        public void SaveFeedbackQuestions()
        {
            // Arrange
            var question = QuestionsMockup.GetFeedbackQuestionsList();

            questionsRepository.Setup(m => m.SaveFeedbackQuestions(question[0])).Returns(question[0]);
            // Act
            var result = questionsController.SaveFeedbackQuestions(question[0]);

            // Assert
            Assert.NotNull(result);
        }
Ejemplo n.º 3
0
        public void GetFeedbackQuestionsList()
        {
            var questionList = QuestionsMockup.GetFeedbackQuestionsList();

            // Arrange
            questionsRepository.Setup(rep => rep.GetFeedbackQuestionsList()).Returns(questionList);
            // Act
            var result = questionsController.GetFeedbackQuestionsList();

            // Assert
            Assert.NotNull(result);
        }