public TourLog EditTourLog(TourLog currentTourLog, string name, string description, string report, string vehicle, string dateTime, int tourId, decimal distance, decimal totalTime, int rating) { ITourLogDAO tourLogDao = DALFactory.CreateTourLogDAO(); return(tourLogDao.EditTourLog(currentTourLog, name, description, report, vehicle, dateTime, tourId, distance, totalTime, rating)); }
public void TourLogEdit() { Tour tour = _tourDao.AddNewItem("Tour1", "Test Description", "Start", "End", 7, _imagePath); TourLog tourLog = _tourLogDao.AddNewTourLog("testlog", "das ist ein log fuer tour1", "einfache Strecke macht echt spaß", "zu fuß", "01.01.1234", tour.Id, 23, 1, 9); TourLog newTourLog = _tourLogDao.EditTourLog(tourLog, "NewName", "NewDescription", "newReport", "newVehicle", "01.01.1111", tour.Id, 1, 1, 1); Assert.AreEqual("NewName", newTourLog.Name); }