public void MarkPresentForDate(string date) { var takeAttendanceModel = new TakeAttendanceModelBuilder().WithDate(date).Build(); SearchForStudents(takeAttendanceModel); EnterAttendanceStatus(AttendanceEventCategoryDescriptorEnum.InAttendance); }
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); }
private void EnterAValidSessionSectionAndDate() { var takeAttendanceModel = new TakeAttendanceModelBuilder().Build(); _takeAttendancePage = _takeAttendancePage.SearchForStudents(takeAttendanceModel); }