Beispiel #1
0
        public void FromLastFmObject_Returns_Empty_String_For_PlayingFrom_Fields()
        {
            var combinedRecentTrack = RecentTrackWithSource.FromLastFmObject(recentTrack);

            Assert.That(combinedRecentTrack.MusicServiceName, Is.Empty);
            Assert.That(combinedRecentTrack.MusicServiceUrl, Is.Empty);
        }
Beispiel #2
0
 private static RecentTrack CreateTrack(RecentTrackWithSource track)
 {
     return(new RecentTrack {
         Album = track.Album,
         Artist = track.Artist,
         AlbumArtLocation = track.LargeImageLocation,
         Name = track.Name,
         LastPlayed = PopulateLastPlayed(track),
         MusicServiceName = track.MusicServiceName,
         MusicServiceUrl = track.MusicServiceUrl,
     });
 }
Beispiel #3
0
        public void FromLastFmObject_Copies_LastfmUserRecentTrack()
        {
            var combinedRecentTrack = RecentTrackWithSource.FromLastFmObject(recentTrack);

            Assert.That(combinedRecentTrack.Artist, Is.EqualTo(recentTrack.Artist));
            Assert.That(combinedRecentTrack.Album, Is.EqualTo(recentTrack.Album));
            Assert.That(combinedRecentTrack.Name, Is.EqualTo(recentTrack.Name));
            Assert.That(combinedRecentTrack.IsNowPlaying, Is.EqualTo(recentTrack.IsNowPlaying));
            Assert.That(combinedRecentTrack.LastPlayed, Is.EqualTo(recentTrack.LastPlayed));
            Assert.That(combinedRecentTrack.SmallImageLocation, Is.EqualTo(recentTrack.SmallImageLocation));
            Assert.That(combinedRecentTrack.MediumImageLocation, Is.EqualTo(recentTrack.MediumImageLocation));
            Assert.That(combinedRecentTrack.LargeImageLocation, Is.EqualTo(recentTrack.LargeImageLocation));
            Assert.That(combinedRecentTrack.ExtraLargeImageLocation, Is.EqualTo(recentTrack.ExtraLargeImageLocation));
        }