Ejemplo n.º 1
0
 public BasicMovieInfo(string title, Uri link)
 {
     if (!MovieHelpers.CanExtract(title, out this.title, out this.year))
     {
         throw new ArgumentException("The title is not in a valid format allowed");
     }
     this.Link = link;
     Verify();
 }
Ejemplo n.º 2
0
 public void LoadGenresFrom(IEnumerable <string> genres)
 {
     Genre = MovieHelpers.RetrieveMovieGenres(genres);
 }
Ejemplo n.º 3
0
 public void LoadGenresFrom(string genres, char delimiter = ',')
 {
     Genre = MovieHelpers.RetrieveMovieGenres(genres.Split(delimiter).Select(li => li.Trim()));
 }