private void UpdateIntellisenseForStartLocation()
        {
            while (tbxStartLocation.Items.Count > 0)
            {
                tbxStartLocation.Items.RemoveAt(0);
            }
            List <string> stations = intellisenseController.GenerateAutocompleteSource(tbxStartLocation.Text);

            foreach (String station in stations)
            {
                if (station != null)
                {
                    tbxStartLocation.Items.Add(station);
                }
            }
            tbxStartLocation.DroppedDown = true;
        }
Example #2
0
        public void GenerateAutoCompleteSource()
        {
            application = new VerbindungenSuchenForm();
            IntellisenseController intellisenseController = new IntellisenseController();
            List <string>          actual = intellisenseController.GenerateAutocompleteSource("Luzern");

            Assert.IsNotNull(actual);
        }