示例#1
0
        public void GetAllImagesFromDB()
        {
            BusinessLayerManager BLM       = new BusinessLayerManager();
            List <Tour>          tourlist  = BLM.GetAllToursFromDB();
            TourSqlPostgresDAO   tourdao   = new TourSqlPostgresDAO(PostgresSqlConnector.Instance());
            List <string>        imageList = (List <string>)tourdao.GetAllTourImages();

            Assert.AreEqual(tourlist.Count, imageList.Count);
        }
示例#2
0
 public void FillTourList()
 {
     Tourlist = new ObservableCollection <Tour>(BLM.GetAllToursFromDB());
     log.Info(String.Format("Fill Tour List with {0} Items", Tourlist.Count));
 }