private List<Movie> GetDefaultMovies() { personManager.Reset(); var apocalypseNow = new Movie("Apocalypse Now", 1979) { Duration = new TimeSpan(3, 22, 0), Genres = new List<Genre> { Genre.War, Genre.Drama }, Director = personManager.GetPersonById(1), Cast = new List<Person>() { personManager.GetPersonById(2), personManager.GetPersonById(3), personManager.GetPersonById(4), personManager.GetPersonById(5), }, }; var pulpFiction = new Movie("Pulp Fiction", 1994) { Duration = new TimeSpan(2, 33, 0), Genres = new List<Genre> { Genre.Crime }, Director = personManager.GetPersonById(9), Cast = new List<Person> { personManager.GetPersonById(6), personManager.GetPersonById(7), personManager.GetPersonById(8), personManager.GetPersonById(9), } }; var fightClub = new Movie("Fight Club", 1999) { Duration = new TimeSpan(2, 19, 0), Genres = new List<Genre> { Genre.Drama }, Director = personManager.GetPersonById(13), Cast = new List<Person> { personManager.GetPersonById(10), personManager.GetPersonById(11), personManager.GetPersonById(12) } }; var lepaSela = new Movie("Lepa Sela Lepo Gore", 1996) { Duration = new TimeSpan(1, 55, 0), Genres = new List<Genre> { Genre.War, Genre.Drama, Genre.Comedy }, Director = personManager.GetPersonById(27), Cast = new List<Person> { personManager.GetPersonById(14), personManager.GetPersonById(15), personManager.GetPersonById(16) } }; var shawshank = new Movie("The Shawshank Redemption", 1994) { Duration = new TimeSpan(2, 22, 0), Genres = new List<Genre> { Genre.Drama, Genre.Crime }, Director = personManager.GetPersonById(28), Cast = new List<Person> { personManager.GetPersonById(17), personManager.GetPersonById(18), personManager.GetPersonById(19) } }; var keyserSose = new Movie("The Usual Suspects", 1995) { Duration = new TimeSpan(1, 46, 0), Genres = new List<Genre> { Genre.Drama, Genre.Crime }, Director = personManager.GetPersonById(29), Cast = new List<Person> { personManager.GetPersonById(20), personManager.GetPersonById(21), personManager.GetPersonById(22) } }; var nbk = new Movie("Natural Born Killers", 1994) { Duration = new TimeSpan(1, 58, 0), Genres = new List<Genre> { Genre.Drama, Genre.Crime }, Director = personManager.GetPersonById(30), Cast = new List<Person> { personManager.GetPersonById(23), personManager.GetPersonById(24), personManager.GetPersonById(25), personManager.GetPersonById(26), } }; var movies = new List<Movie> { apocalypseNow, pulpFiction, fightClub, lepaSela, shawshank, keyserSose, nbk }; return movies; }
private List <Movie> GetDefaultMovies() { personManager.Reset(); var apocalypseNow = new Movie("Apocalypse Now", 1979) { Duration = new TimeSpan(3, 22, 0), Genres = new List <Genre> { Genre.War, Genre.Drama }, Director = personManager.GetPersonById(1), Cast = new List <Person>() { personManager.GetPersonById(2), personManager.GetPersonById(3), personManager.GetPersonById(4), personManager.GetPersonById(5), }, }; var pulpFiction = new Movie("Pulp Fiction", 1994) { Duration = new TimeSpan(2, 33, 0), Genres = new List <Genre> { Genre.Crime }, Director = new Person { FirstName = "Quentin", LastName = "Tarantino" }, Cast = new List <Person> { new Person { FirstName = "John", LastName = "Travolta" }, new Person { FirstName = "Samuel", LastName = "Jackson" }, new Person { FirstName = "Bruce", LastName = "Willis" }, new Person { FirstName = "Quentin", LastName = "Tarantino" }, } }; var fightClub = new Movie("Fight Club", 1999) { Duration = new TimeSpan(2, 19, 0), Genres = new List <Genre> { Genre.Drama }, Director = new Person { FirstName = "David", LastName = "Fincher" }, Cast = new List <Person> { new Person { FirstName = "Brad", LastName = "Pitt" }, new Person { FirstName = "Edward", LastName = "Norton" }, new Person { FirstName = "Helena", LastName = "Bonham Carter" }, } }; var lepaSela = new Movie("Lepa Sela Lepo Gore", 1996) { Duration = new TimeSpan(1, 55, 0), Genres = new List <Genre> { Genre.War, Genre.Drama, Genre.Comedy }, Director = new Person { FirstName = "Srdjan", LastName = "Dragojevic" }, Cast = new List <Person> { new Person { FirstName = "Dragan", LastName = "Bjelogrlic" }, new Person { FirstName = "Nikola", LastName = "Kojo" }, new Person { FirstName = "Zoran", LastName = "Cvijanovic" }, } }; var shawshank = new Movie("The Shawshank Redemption", 1994) { Duration = new TimeSpan(2, 22, 0), Genres = new List <Genre> { Genre.Drama, Genre.Crime }, Director = new Person { FirstName = "Frank", LastName = "Darabond" }, Cast = new List <Person> { new Person { FirstName = "Tim", LastName = "Robbins" }, new Person { FirstName = "Morgan", LastName = "Freemen" }, new Person { FirstName = "Bob", LastName = "Gunton" }, } }; var keyserSose = new Movie("The Usual Suspects", 1995) { Duration = new TimeSpan(1, 46, 0), Genres = new List <Genre> { Genre.Drama, Genre.Crime }, Director = new Person { FirstName = "Bryan", LastName = "Singer" }, Cast = new List <Person> { new Person { FirstName = "Kevin", LastName = "Spacey" }, new Person { FirstName = "Chazz", LastName = "Palminteri" }, new Person { FirstName = "Gabriel", LastName = "Byrne" }, } }; var nbk = new Movie("Natural Born Killers", 1994) { Duration = new TimeSpan(1, 58, 0), Genres = new List <Genre> { Genre.Drama, Genre.Crime }, Director = new Person { FirstName = "Oliver", LastName = "Stone" }, Cast = new List <Person> { new Person { FirstName = "Woody", LastName = "Harrelson" }, new Person { FirstName = "Juliette", LastName = "Lewis" }, new Person { FirstName = "Tom", LastName = "Sizemore" }, new Person { FirstName = "Robert", LastName = "Downey Jr" }, } }; var movies = new List <Movie> { apocalypseNow, pulpFiction, fightClub, lepaSela, shawshank, keyserSose, nbk }; return(movies); }