public void GetNeighborhoodsCompletionListTest() { NeighborhoodTest _nh = new NeighborhoodTest(); _nh.SetUp(); WebLocationService.TransitCity t_city = _nh.EndPoint.GetCityById(GetAdminTicket(), _nh._city_id); string key = string.Format("{0};{1};{2}", t_city.Country, t_city.State, t_city.Name); Console.WriteLine("Key: {0}", key); WebLocationService.TransitNeighborhood t_instance = _nh.GetTransitInstance(); int id = _nh.EndPoint.CreateOrUpdateNeighborhood(GetAdminTicket(), t_instance); string[] neighborhoods = EndPoint.GetNeighborhoodsCompletionList( t_instance.Name.Substring(0, 3), 100, key); Assert.AreEqual(1, neighborhoods.Length); Assert.AreEqual(t_instance.Name, neighborhoods[0]); Console.WriteLine(neighborhoods[0]); _nh.EndPoint.DeleteNeighborhood(GetAdminTicket(), id); _nh.TearDown(); }