public void ShouldMap()
        {
            var student = new StudentBuilder().Build();
            var takeAttendanceModel = new TakeAttendanceModelBuilder().WithStudent(student).Build();
            var section = new SectionBuilder().WithStudent(student).Build();

            var mapper = new TakeAttendanceModelToStudentSectionAttendanceEventListMapper();
            var studentSectionAttendanceEventList = mapper.Build(takeAttendanceModel, section).ToList();

            studentSectionAttendanceEventList.First().StudentUSI.ShouldBe(student.StudentUSI);
            studentSectionAttendanceEventList.First().Student.ShouldBe(student);
        }
示例#2
0
 private void EnterAValidSessionSectionAndDate()
 {
     var takeAttendanceModel = new TakeAttendanceModelBuilder().Build();
     _takeAttendancePage = _takeAttendancePage.SearchForStudents(takeAttendanceModel);
 }