public void PopulateMenuItems(SearchResultCollection result) { MenuItemViewModels.Clear(); if (result == null) return; PopulateArtists(result.Artists); PopulateAlbums(result.Albums); PopulateSongs(result.Songs); foreach (var subsonicModel in _menuItemViewModels.Select(x => x.Item)) { subsonicModel.CoverArt = SubsonicService.GetCoverArtForId(subsonicModel.CoverArt); } }
public void TestInitialize() { _subject = new SearchResultCollection(); }