Beispiel #1
0
        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());
            }
        }
Beispiel #2
0
        public void TestGetAll()
        {
            List <string> allTerms = repository.GetAll();

            Assert.AreEqual(testTerms.Count, allTerms.Count);
        }