public void TestExistExperts()
        {
            var experts = _expertsService.GetAllExperts();

            Assert.IsNotNull(experts);
            Assert.IsTrue(experts.Count() > 0);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Can Meeting
        /// </summary>
        /// <param name="num"></param>
        /// <returns></returns>
        public bool CanMeeting(int num)
        {
            if (num <= 0)
            {
                throw new PizzaExpertsException("Number of participants must be above 0");
            }

            var allExperts = _expertsService.GetAllExperts();

            return(allExperts.Count() >= num);
        }