public static QuizMaster Create(IQuiz chosenQuiz, IGameCommandListener gameCommandListener)
        {
            if (!chosenQuiz.Questions.Any())
                throw new InvalidDataException("No questions in this quiz!");

            return new QuizMaster(chosenQuiz, gameCommandListener);
        }
Example #2
0
        public static QuizMaster Create(IQuiz chosenQuiz, IGameCommandListener gameCommandListener)
        {
            if (!chosenQuiz.Questions.Any())
            {
                throw new InvalidDataException("No questions in this quiz!");
            }

            return(new QuizMaster(chosenQuiz, gameCommandListener));
        }
 internal QuizMaster(IQuiz quiz, IGameCommandListener listener)
 {
     _quiz = quiz;
     _gameCommandListener = listener;
 }
 internal QuizMaster(IQuiz quiz, IGameCommandListener listener)
 {
     _quiz = quiz;
     _gameCommandListener = listener;
 }