private StudentAssessment BuildFirstStudentAssessment() { var assessment = new AssessmentBuilder() .WithAssessmentLearningStandards() .WithAssessmentPerformanceLevels() .Build(); _genericRepository.Get(Arg.Any<Expression<Func<AssessmentCategoryType, bool>>>()) .Returns(new AssessmentCategoryType { ShortDescription = assessment.AssessmentCategoryType.ShortDescription }); var section = new SectionBuilder().WithAssessment(assessment).Build(); //To add section to assessment assessment.AssessmentSections = new AssessmentBuilder().WithSection(section).Build().AssessmentSections; var studentAssessmentScoreResult = new StudentAssessmentScoreResultBuilder().WithResult("95.7").Build(); var studentAssessment = new StudentAssessmentBuilder().WithAssessment(assessment) .WithStudentAssessmentScoreResult(studentAssessmentScoreResult).Build(); return studentAssessment; }
private static StudentAssessment BuildStudentAssessmentTwo() { var assessmentTwo = new AssessmentBuilder() .WithAssessmentLearningStandards() .WithAssessmentPerformanceLevels() .Build(); new SectionBuilder().WithAssessment(assessmentTwo).Build(); //To add section to assessment var studentAssessmentScoreResult = new StudentAssessmentScoreResultBuilder().WithResult("69.5").Build(); var studentAssessmentTwo = new StudentAssessmentBuilder() .WithAssessment(assessmentTwo) .WithStudentAssessmentScoreResult(studentAssessmentScoreResult) .Build(); return studentAssessmentTwo; }