internal IlrLearnersBuilder(IlrBuilder parentBuilder) : base(parentBuilder.Submission) { Learners = new[] { new Learner { Uln = Defaults.FirstUln + parentBuilder.Submission.Learners.Length, LearnRefNumber = Defaults.FirstUln + parentBuilder.Submission.Learners.Length.ToString(), LearningDeliveries = new LearningDelivery[0] } }; parentBuilder.Submission.Learners = Learners; }
internal IlrLearnerBuilder(IlrBuilder parentBuilder) : base(parentBuilder.Submission) { Learner = new Learner { Uln = Defaults.FirstUln + parentBuilder.Submission.Learners.Length, LearningDeliveries = new LearningDelivery[0] }; var learners = new List <Learner>(parentBuilder.Submission.Learners) { Learner }; parentBuilder.Submission.Learners = learners.ToArray(); }