Beispiel #1
0
        public void TurnTheCurrentQuestionUpForAnswerWhenTheUserWhoGetTheMeetingIsNotTheFacilitator()
        {
            Guid         facilitatorId = Guid.NewGuid();
            MeetingModel meetingModel  = meetingAppService.CreateMeeting(facilitatorId);

            meetingAppService.EnableAnswersOfTheCurrentQuestion(meetingModel.Id, facilitatorId);

            meetingModel = meetingAppService.GetMeeting(meetingModel.Id, facilitatorId);

            AssertThatTheCurrentQuestionIsUpForAnswer(meetingModel);
        }
Beispiel #2
0
        public IActionResult Get(Guid meetingId, Guid userId)
        {
            try
            {
                MeetingModel meeting = meetingAppService.GetMeeting(meetingId, userId);

                return(Ok(meeting));
            }
            catch (NonExistentMeetingException)
            {
                return(BadRequest());
            }
        }