Ejemplo n.º 1
0
        /// <summary>
        /// apply for a meeting
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public IEnumerable <string> ApplyforMeeting(MeetingModel model)
        {
            Argument.ThrowIfNull(model, nameof(model));
            Argument.Validate(model.Participants > 0, nameof(model.Participants), "Number of participants must be above 0");

            if (!_meetingService.CanMeeting(model.Participants))
            {
                throw new PizzaExpertsException("there is not enough people at work");
            }

            return(_meetingService.MeetingTimes(model.Participants));
        }