コード例 #1
0
        private static void InitFilms()
        {
            domainService.CreateFilm("Matrix", FilmType.NewReleases);
            domainService.CreateFilm("Matrix 11", FilmType.NewReleases);
            domainService.CreateFilm("Matrix 111", FilmType.NewReleases);
            domainService.CreateFilm("Lord of the rings", FilmType.NewReleases);
            domainService.CreateFilm("Lord of the rings 11", FilmType.NewReleases);
            domainService.CreateFilm("Lord of the rings 111", FilmType.NewReleases);
            domainService.CreateFilm("Gran Torino", FilmType.NewReleases);
            domainService.CreateFilm("Shattered island", FilmType.NewReleases);
            domainService.CreateFilm("The Great Gatsby", FilmType.NewReleases);
            domainService.CreateFilm("Inception", FilmType.NewReleases);
            domainService.CreateFilm("Zombieland", FilmType.NewReleases);
            domainService.CreateFilm("Ted", FilmType.NewReleases);
            domainService.CreateFilm("Hangover", FilmType.NewReleases);

            domainService.CreateFilm("Back to the future", FilmType.RegularFilms);
            domainService.CreateFilm("Back to the future 11", FilmType.RegularFilms);
            domainService.CreateFilm("Back to the future 111", FilmType.RegularFilms);
            domainService.CreateFilm("Home alone", FilmType.RegularFilms);

            domainService.CreateFilm("Titanic", FilmType.OldFilms);
            domainService.CreateFilm("The godfather", FilmType.OldFilms);
            domainService.CreateFilm("From dusk till down", FilmType.OldFilms);
        }
コード例 #2
0
 protected Film CreateMatrixFilm()
 {
     return(domainService.CreateFilm(FilmData.TheMatrixName, FilmType.NewReleases));
 }