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); }
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; }