Esempio n. 1
0
        public async Task GetParticipantFbAsync_ShouldReturnParticipantFb_ParticipantFbExists()
        {
            int id = 1;
            List <ParticipantFeedbackVM> feedbackVMs = new List <ParticipantFeedbackVM>();
            ParticipantFeedbackVM        feedback    = new ParticipantFeedbackVM();
            List <string> fbNames = new List <string>();

            fbNames.Add("Good Event");
            fbNames.Add("Excellent");
            feedback.Feedback = fbNames;


            feedbackVMs.Add(feedback);
            _feedbackRepository.Setup(x => x.GetParticipantFeedbacksForEvent(id)).ReturnsAsync(feedbackVMs);

            IEnumerable <ParticipantFeedbackVM> result = await feedbackController.GetParticipantFeedbacks(id);

            Assert.IsNotEmpty(result);
        }