Beispiel #1
0
        public void GetRoutesNotNull()
        {
            TourPlannerManager tourManager = TourPlannerManagerFactory.GetFactoryManager();
            MediaFolder        folder      = tourManager.GetMediaFolder();

            Assert.IsNotNull(dbOut.GetRoutes());
        }
 public static TourPlannerManager GetFactoryManager()
 {
     if (manager == null)
     {
         manager = new TourPlannerManagerImpl();
     }
     return(manager);
 }
Beispiel #3
0
        public void GetToursNotNull()
        {
            TourPlannerManager testManager = TourPlannerManagerFactory.GetFactoryManager();

            //TourPlannerManager testManager = GetTourPlannerManager();
            AssertTours = new ObservableCollection <Tour>();
            AssertTours = testManager.GetTours(AssertTours);
            Assert.NotNull(AssertTours);
        }
Beispiel #4
0
        public void TextSearchTestWithoutResult()
        {
            TourPlannerManager testManager = TourPlannerManagerFactory.GetFactoryManager();

            TestTours   = new();
            AssertTours = new();
            TestTours.Add(new Tour()
            {
                Name = "TestTour"
            });
            string TestString = "abc";

            AssertTours = testManager.SearchForTours(TestString, TestTours);
            Assert.AreNotEqual(AssertTours, TestTours);
        }
Beispiel #5
0
        public void TextSearchTestWithResult()
        {
            TourPlannerManager testManager = TourPlannerManagerFactory.GetFactoryManager();

            TestTours   = new ObservableCollection <Tour>();
            AssertTours = new ObservableCollection <Tour>();
            TestTours.Add(new Tour()
            {
                Name = "TestTour"
            });
            string TestString = "Test";

            AssertTours = testManager.SearchForTours(TestString, TestTours);
            Assert.AreEqual(AssertTours, TestTours);
        }