public void TestRetrieveAllAppointments() { //Arrange List <Appointment> appointments = null; //Act appointments = _appMgr.RetrieveAppointments(); //Assert CollectionAssert.Equals(_testAppointments, appointments); }
/// <summary> /// Eduardo Colon /// Created: 2019/04/23 /// /// method to refresh browse appointment datagrid. /// </summary> private void refreshDataGrid() { try { dgAppointments.ItemsSource = _appointmentManager.RetrieveAppointments(); dgAppointments.Items.Refresh(); } catch (Exception ex) { MessageBox.Show(ex.Message + Environment.NewLine + ex.StackTrace); } }