private void PopulateAll()
        {
            cboSearchTicket.Items.Clear();
            cboSearchEmp.Items.Clear();
            cboSearchCustomer.Items.Clear();
            cboCustomer.Items.Clear();
            cboUserName.Items.Clear();
            //Populates the ticket combo box
            List <int> tickets = new List <int>();

            tickets.Clear();
            tickets = help.GetTickets();
            foreach (int tick in tickets)
            {
                cboSearchTicket.Items.Add(tick);
            }
            //Populates the customer combo boxes.
            List <string> customers = new List <string>();

            customers = help.GetCustomers();
            foreach (string custs in customers)
            {
                cboSearchCustomer.Items.Add(custs);
                cboCustomer.Items.Add(custs);
            }
            //Populates the employee combo boxes
            List <string> employees = new List <string>();

            employees = help.GetEmployees();
            foreach (string emp in employees)
            {
                cboSearchEmp.Items.Add(emp);
                cboUserName.Items.Add(emp);
            }
        }
Example #2
0
        public void GetEmployeesTest()
        {
            var test = Help.GetEmployees();

            Assert.IsNotNull(test);
        }