Beispiel #1
0
        public void SearchTest_BLM()
        {
            BusinessLayerManager BLM = new BusinessLayerManager();

            BLM.CreateNewTour("SEARCHTEST1", "Stephansplatz,Vienna,Austria", "Mariahilfer-Straße,Vienna,Austria", "");
            List <Tour> searchList = (List <Tour>)BLM.Search("SEARCHTEST1");

            Assert.AreEqual(1, searchList.Count);
            BLM.DeleteTourGetList(searchList[0]);
        }
        public void DeleteTour()
        {
            if (TourSelection != null)
            {
                TourAddUtilityProperty.Description   = null;
                TourAddUtilityProperty.Distance      = default;
                TourAddUtilityProperty.EndLocation   = null;
                TourAddUtilityProperty.ImagePath     = null;
                TourAddUtilityProperty.Name          = null;
                TourAddUtilityProperty.StartLocation = null;

                ImagePath = FALLBACKIMG;
                string tmpname = TourSelection.Name;
                Debug.WriteLine("DeleteTour");
                Tourlist = new ObservableCollection <Tour>(BLM.DeleteTourGetList(TourSelection));
                log.Info(String.Format("Deleted Tour: {0} ", tmpname));
            }
        }