Beispiel #1
0
        public IEnumerable<BaseGenre> RebuildGenreTree()
        {
            var autoBiography = new AutoBiographyGenre();
            var memoire = new MemoirGenre();
            var biography = new BiographyGenre();

            var alternateHistory = new AlternateHistoryGenre();
            var periodPiece = new PeriodPieceGenre();
            var costumeDrama = new CostumeDramaGenre();
            var jidaigeki = new JidaigekiGenre();
            var historicalFiction = new HistoricalFictionGenre();

            var historical = new HistoricalGenre();
            var genres = new List<BaseGenre>();

            biography.AddSubGenre(autoBiography);
            biography.AddSubGenre(memoire);
            historicalFiction.AddSubGenre(alternateHistory);
            historicalFiction.AddSubGenre(periodPiece);
            historicalFiction.AddSubGenre(costumeDrama);
            historicalFiction.AddSubGenre(jidaigeki);
            historical.AddSubGenre(biography);
            historical.AddSubGenre(historicalFiction);

            genres.Add(historical);
            return genres;
        }
Beispiel #2
0
 public void CanRemoveGenre()
 {
     var genre = new MemoirGenre();
     beekRepos.AddGenre(genre);
     Assert.IsTrue(beekRepos.GetGenres().Any(g => g.Equals(genre)));
     beekRepos.RemoveGenre(genre);
     Assert.IsFalse(beekRepos.GetGenres().Any(g => g.Equals(genre)));
 }