public static List <ReadingPartTwo> Generate(int size, int answerSize = 4) { List <ReadingPartTwo> readingPartTwos = new List <ReadingPartTwo>(); for (int i = 0; i < size; i++) { var temp = new ReadingPartTwo { Answers = JsonConvert.SerializeObject(BaseAnswer.Generate(answerSize)), AnswerList = BaseAnswer.Generate(answerSize) }; readingPartTwos.Add(temp); } return(readingPartTwos); }
public static List <ListeningBaseQuestion> Generate(int size, int answerSize = 1) { List <ListeningBaseQuestion> listeningBaseQuestions = new List <ListeningBaseQuestion>(); for (int i = 0; i < size; i++) { var temp = new ListeningBaseQuestion { Answers = JsonConvert.SerializeObject(BaseAnswer.Generate(answerSize)), AnswerList = BaseAnswer.Generate(answerSize) }; listeningBaseQuestions.Add(temp); } return(listeningBaseQuestions); }