Example #1
0
        public ICourseFactory WithStudent(Action <StudentFactory> student)
        {
            var studentFactory = new StudentFactory();

            student(studentFactory);

            this.builtStudents.Add(studentFactory.Build());

            return(this);
        }