示例#1
0
        public void CreateMeeting()
        {
            MeetingModel meetingModel = meetingAppService.CreateMeeting(facilitatorId);

            Assert.That(meetingModel.Id, Is.Not.EqualTo(Guid.Empty));
            Assert.IsTrue(meetingModel.Questions.First().IsTheCurrent);
            Assert.IsFalse(meetingModel.Questions.First(q => q.IsTheCurrent).IsUpForAnswer);
            Assert.IsTrue(meetingModel.UserIsTheFacilitator);
            AssertThatTheQuestionsHasTheSameDataOfTheTemplate(meetingModel);
            AssertThatTheQuestionsHasNotAnyAmountOfAnswer(meetingModel);
        }
示例#2
0
        public IActionResult CreateMeeting(Guid userId)
        {
            MeetingModel meeting = meetingAppService.CreateMeeting(userId);

            return(Created("", meeting));
        }