public static string GetDayTooltip(ClassAbsencesModel.AttendanceEvent attendanceEvent, DateTime date, string reason)
        {
            switch (attendanceEvent)
            {
                case ClassAbsencesModel.AttendanceEvent.Unexcused:
                    return String.Format("Unexcused Absence on {0}", date.ToShortDateString());
                case ClassAbsencesModel.AttendanceEvent.Excused:
                    return String.Format("Excused Absence:({0}) {1}", date.ToShortDateString(), reason);
                case ClassAbsencesModel.AttendanceEvent.NonInstructional:
                    return String.Format("{0} (non instructional)", date.ToShortDateString());
                case ClassAbsencesModel.AttendanceEvent.Tardy:
                    return String.Format("Tardy on {0}", date.ToShortDateString());
                case ClassAbsencesModel.AttendanceEvent.NoData:
                    return String.Empty;
            }

            return date.ToShortDateString();
        }
        public static string GetDayText(ClassAbsencesModel.AttendanceEvent attendanceEvent)
        {
            switch (attendanceEvent)
            {
                case ClassAbsencesModel.AttendanceEvent.Present:
                case ClassAbsencesModel.AttendanceEvent.Excused:
                case ClassAbsencesModel.AttendanceEvent.Unexcused:
                case ClassAbsencesModel.AttendanceEvent.Tardy:
                    return attendanceEvent.ToString();
                case ClassAbsencesModel.AttendanceEvent.NonInstructional:
                    return "Non Instructional";
                case ClassAbsencesModel.AttendanceEvent.NoData:
                    break;
                default:
                    throw new ArgumentOutOfRangeException("attendanceEvent");
            }

            return String.Empty;
        }
 protected override void ExecuteTest()
 {
     var service = new ClassAbsencesService
                       {
                         Repository = repository  
                       };
     actualModel = service.Get(new ClassAbsencesRequest()
                               {
                                   StudentUSI = suppliedStudentUSI,
                                   SchoolId = suppliedSchoolId
                               });
 }