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);
        }
예제 #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));
        }
예제 #3
0
 internal QuizMaster(IQuiz quiz, IGameCommandListener listener)
 {
     _quiz = quiz;
     _gameCommandListener = listener;
 }
예제 #4
0
 internal QuizMaster(IQuiz quiz, IGameCommandListener listener)
 {
     _quiz = quiz;
     _gameCommandListener = listener;
 }