private void UpdateMovieHelper(MovieInput movie) { Movie movieToUpdate = FindMovie(movie.Id); Movie updatedMovie = ConvertToMovie(movie); movieToUpdate.UpdateProperties(updatedMovie); NotifyOutputBoundary(); }
public void AddMovie(MovieInput movie) { Movie temp = ConvertToMovie(movie); _movies.Add(temp); NotifyOutputBoundary(); }
public void UpdateMovie(MovieInput movie) { try { UpdateMovieHelper(movie); } catch (ArgumentNullException e) { throw new UnableToUpdateMovieException(e); } }
private void RemoveMovieHelper(MovieInput movie) { _movies.RemoveAll(m => m.Equals(movie)); NotifyOutputBoundary(); }
private Movie ConvertToMovie(MovieInput movie) { throw new NotImplementedException(); }