public void TestFosterAppointmentManagerSeeAllFosterAppointments() { manager.ScheduleFosterAppointment(new FosterAppointment() { VolunteerID = 5 }); manager.ScheduleFosterAppointment(new FosterAppointment() { VolunteerID = 7 }); System.Collections.Generic.List <FosterAppointmentVM> appointments = manager.ViewFosterAppointments(); Assert.IsNotNull(appointments.Find(x => x.VolunteerID == 5)); Assert.IsNotNull(appointments.Find(x => x.VolunteerID == 7)); }
/// <summary> /// Creator: Timothy Lickteig /// Created: 04/27/2020 /// Approver: Zoey McDonald /// /// Method for refreshing the datagrid /// </summary> /// <remarks> /// Updater: N/A /// Updated: N/A /// Update: N/A /// </remarks> private void refreshList() { try { dgAppointmentList.ItemsSource = manager.ViewFosterAppointments(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }