Exemplo n.º 1
0
        private ICollection<IProblem> GenerateProblemList()
        {
            ICollection<IProblem> problems = new List<IProblem>();

            IProblemFactory problemFactory = new ProblemFactory();

            for (int i = 0; i < NumberOfProblemsInExam; i++)
            {
                problems.Add(problemFactory.CreateProblem());
            }

            return problems;
        }
Exemplo n.º 2
0
        private ICollection <IProblem> GenerateProblemList()
        {
            ICollection <IProblem> problems = new List <IProblem>();

            IProblemFactory problemFactory = new ProblemFactory();

            for (int i = 0; i < NumberOfProblemsInExam; i++)
            {
                problems.Add(problemFactory.CreateProblem());
            }

            return(problems);
        }