Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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();
        }