public void PopulateActionTitlesList(Genre Action,Genre All) { Action.ListOfTitles.Add(All.ListOfTitles[0]); Action.ListOfTitles.Add(All.ListOfTitles[1]); Action.ListOfTitles.Add(All.ListOfTitles[5]); Action.ListOfTitles.Add(All.ListOfTitles[7]); }
public void PopulateDramaTitlesList(Genre Drama, Genre All) { Drama.ListOfTitles.Add(All.ListOfTitles[2]); Drama.ListOfTitles.Add(All.ListOfTitles[3]); Drama.ListOfTitles.Add(All.ListOfTitles[4]); Drama.ListOfTitles.Add(All.ListOfTitles[8]); }
public void PopulateGenreList(Genre All, Genre Action, Genre Romance, Genre Drama) { Genres.Add (All); Genres.Add (Action); Genres.Add (Romance); Genres.Add (Drama); }
public void PopulateAllTitlesListTest() { Genre All = new Genre("All"); Movie test = new Movie("Die Hard", 4, 133); All.ListOfTitles.Add(new Movie("Die Hard", 4, 133)); Assert.AreEqual(test.Name,All.ListOfTitles[0].Name); Assert.AreEqual(test.Rating, All.ListOfTitles[0].Rating); }
public void PopulateAllTitlesList(Genre All) { All.ListOfTitles.Add(new Movie("Die Hard", 4, 133)); All.ListOfTitles.Add(new Movie("Killers", 3, 98)); All.ListOfTitles.Add(new Movie("Broke Back Mountain", 5, 180)); All.ListOfTitles.Add(new Movie("Home Alone", 4, 7)); All.ListOfTitles.Add(new Movie("Sex in the City", 1, 88)); All.ListOfTitles.Add(new Movie("Deadpool", 5, 130)); All.ListOfTitles.Add(new TV_Show("The Bachelor")); All.ListOfTitles.Add(new TV_Show("Chicago Code")); All.ListOfTitles.Add(new TV_Show("Game Of Thrones")); }
static void Main(string[] args) { Database database = new Database(); View view = new View(); Genre All = new Genre("All"); Genre Action = new Genre("Action"); Genre Romance = new Genre("Romance"); Genre Drama = new Genre("Drama"); database.PopulateAllTitlesList(All); database.PopulateActionTitlesList(Action,All); database.PopulateRomanceTitlesList(Romance,All); database.PopulateDramaTitlesList(Drama,All); database.PopulateGenreList(All,Action,Romance,Drama); view.DisplayGenresAndTitles(database.Genres); Console.ReadKey(); }
static void Main(string[] args) { Genre movies = new Genre(); Console.WriteLine("All Movies:\n"); movies.MakeAllMovieList(); Console.WriteLine("\nAction Movies:\n"); movies.FindActionMovies(); Console.WriteLine("\nComedy Movies:\n"); movies.FindComedyMovies(); Console.WriteLine("\nRomance Movies:\n"); movies.FindRomanceMovies(); Console.WriteLine("\nRomantic Comedies\n"); movies.FindRomanticComedies(); Console.WriteLine("\nCustom iterator returning only movie title:\n"); movies.JustMovieNames(); TvShow episodes = new TvShow(); episodes.CreateTitle(); episodes.MakeTvShowList(); Console.ReadLine(); }
public Genre(Genre genre1,Genre genre2) { }
public void PopulateRomanceTitlesList(Genre Romance, Genre All) { Romance.ListOfTitles.Add(All.ListOfTitles[2]); Romance.ListOfTitles.Add(All.ListOfTitles[6]); }
public Title(string name, int rating, Genre genre) { this.Name = name; this.Rating = rating; this.Genre = genre; }
public Title() { this.Name = null; this.Rating = null; this.Genre = null; }