예제 #1
0
        public async Task LastFMStatsControllerTests_GetLovedTracks()
        {
            // Arrange

            // Act
            List <Track> tracks = (List <Track>) await _controller.GetUserLovedTracks("chromimuk");

            // Assert
            Assert.IsNotNull(tracks.First().Artist);
            Assert.IsNotNull(tracks.First().Name);
        }
 public Task <IEnumerable <Track> > GetLovedTracks(string username, int limit)
 {
     return(_controller.GetUserLovedTracks(username, limit));
 }