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); }
public IActionResult CreateMeeting(Guid userId) { MeetingModel meeting = meetingAppService.CreateMeeting(userId); return(Created("", meeting)); }