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); }
public void FillTourList() { Tourlist = new ObservableCollection <Tour>(BLM.GetAllToursFromDB()); log.Info(String.Format("Fill Tour List with {0} Items", Tourlist.Count)); }