Ejemplo n.º 1
0
        public static MovieGenre CreateAndAddMovie(string name, Movie movie)
        {
            var m = new MovieGenre(name);

            m.Movies.Add(movie);
            return(m);
        }
Ejemplo n.º 2
0
        public Movie()
        {
            Name   = "The Lord of the Rings: The Fellowship of the Ring";
            Genres = new List <MovieGenre>
            {
                MovieGenre.CreateAndAddMovie("Adventure", this),
                MovieGenre.CreateAndAddMovie("Fantasy", this),
                MovieGenre.CreateAndAddMovie("Drama", this)
            };

            Actors = new[] {
                new Actor("Elijah Wood"),
                new Actor("Ian McKellen"),
                new Actor("Orlando Bloom"),
                new Actor("Sean Astin"),
                new Actor("Christopher Lee"),
                new Actor("Viggo Mortensen"),
                new Actor("Liv Tyler"),
                new Actor("Cate Blanchett")
            };

            Director = new Director();
            Director.Movies.Add(this);
        }