public void OneDayPart() { Child cOne = new Child { FirstName = "c1", Birthday = Infant(), AttendanceRequest = AllMonday() }; Child cTwo = new Child { FirstName = "c2", Birthday = Infant(), AttendanceRequest = AllMonday() }; List<Child> children = new List<Child> {cOne, cTwo}; Caregiver pOne = new Parent { FirstName = "p1", AvailableAttendance = new List<CaregiverAvailability> { new CaregiverAvailability(DayPart.MONDAY_MORNING) }, Children = new List<Child> { cOne } }; Caregiver pTwo = new Parent { FirstName = "p2", AvailableAttendance = new List<CaregiverAvailability> { new CaregiverAvailability(DayPart.MONDAY_AFTERNOON) }, Children = new List<Child> { cTwo } }; List<Caregiver> caregivers = new List<Caregiver> { pOne, pTwo }; WeekRoster roster = new AutoRosterer().getRoster(caregivers, children); Console.WriteLine(roster); }
public void TestContains() { Caregiver pOne = new Parent { FirstName = "p1", AvailableAttendance = new List<CaregiverAvailability> { new CaregiverAvailability(DayPart.MONDAY_MORNING) } }; Assert.IsTrue(pOne.AvailableAttendance.Contains(new CaregiverAvailability(DayPart.MONDAY_MORNING))); }