private void LoadComboBoxes() { try { IList <GLAccount> allAccounts = GLAccountRepository.GetAll(); IList <Terms> allTerms = TermsRepository.GetAll(); _allStates = StateRepository.GetAll(); VendorTermsComboBox.ItemsSource = allTerms; VendorAccountComboBox.ItemsSource = allAccounts; VendorStateComboBox.ItemsSource = _allStates; } catch (Exception ex) { MessageBox.Show(ex.Message, ex.GetType().ToString()); } }
public void TestGetAll() { List <string> allTerms = repository.GetAll(); Assert.AreEqual(testTerms.Count, allTerms.Count); }