protected override void PostProcessExplodedReviews(IList <IExplodedReview <Album> > explodedReviews) { var stylesDefinitions = new Dictionary <string, StyleDefinition>(); foreach (var explodedReview in explodedReviews) { var albumReview = explodedReview as AlbumExplodedReview; if (albumReview == null) { throw new InvalidCastException("explodedReview cannot be cast as AlbumExplodedReview"); } if (albumReview.ProcessedAlbumStyle == null) { continue; } if (!stylesDefinitions.ContainsKey(albumReview.AlbumMusicGenre.ToUpperInvariant())) { stylesDefinitions.Add(albumReview.AlbumMusicGenre.ToUpperInvariant(), albumReview.ProcessedAlbumStyle); } } _stylesTree = StylesTree.BuildFrom(stylesDefinitions); }
public void AttachStylesTree(StylesTree stylesTree) { _stylesTree = stylesTree; }