Beispiel #1
0
        public void ContabilizeTheAnswersWhenUserAnswerTheCurrentQuestion()
        {
            Guid         greenUser     = Guid.NewGuid();
            Guid         yellowUser    = Guid.NewGuid();
            Guid         redUser       = Guid.NewGuid();
            Guid         facilitatorId = Guid.NewGuid();
            MeetingModel meetingModel  = meetingAppService.CreateMeeting(facilitatorId);

            meetingAppService.JoinTheMeeting(meetingModel.Id, greenUser);
            meetingAppService.JoinTheMeeting(meetingModel.Id, yellowUser);
            meetingAppService.JoinTheMeeting(meetingModel.Id, redUser);
            meetingAppService.EnableAnswersOfTheCurrentQuestion(meetingModel.Id, facilitatorId);

            meetingAppService.AnswerTheCurrentQuestion(meetingModel.Id, greenUser, Answer.Green, annotation: null);
            meetingAppService.AnswerTheCurrentQuestion(meetingModel.Id, yellowUser, Answer.Yellow, annotation: null);
            meetingAppService.AnswerTheCurrentQuestion(meetingModel.Id, redUser, Answer.Red, annotation: null);

            AssertThatTheAnswerWasContabilized(meetingModel);
        }
Beispiel #2
0
        public IActionResult AnswerTheCurrentQuestion(Guid userId, Answer answer, Guid meetingId, string annotation)
        {
            meetingAppService.AnswerTheCurrentQuestion(meetingId, userId, answer, annotation);

            return(Ok());
        }