示例#1
0
 public void CleanUp()
 {
     Attendance[] attendances = Repository.GetAll();
     foreach (Attendance attendance in attendances)
     {
         Repository.Remove(attendance);
     }
     InfrastructureTestsSeed.RemoveAll(dbContext);
 }
        public void GetAllAttendances()
        {
            var repo        = new AttendanceRepository();
            var attendances = repo.GetAll();

            foreach (var attendance in attendances)
            {
                HistoryOfAttendances.Add(attendance);
            }
        }