public void GetPlaylist_ShouldReturNullWhenNoPlaylistWithTheGivenID() { ITunesServiceImpl service = GetServiceInstance(); service.Initialize(); MockLibrarySource librarySource = CreateAndSetUpLibrarySource(); mockITunesApp.LibrarySource = librarySource; Playlist playlist = service.GetPlaylist(42); Assert.Null(playlist); }
public void GetPlaylist_ShouldReturnPlaylistForTheGivenID() { ITunesServiceImpl service = GetServiceInstance(); service.Initialize(); MockLibrarySource librarySource = CreateAndSetUpLibrarySource(); mockITunesApp.LibrarySource = librarySource; Playlist playlist = service.GetPlaylist(2); Assert.NotNull(playlist); Assert.AreEqual(2, playlist.ID); }