コード例 #1
0
        public async Task LastFMStatsControllerTests_GetTopTracks()
        {
            // Arrange

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

            // Assert
            Assert.IsNotNull(tracks.First().Artist);
            Assert.IsNotNull(tracks.First().Name);
        }
コード例 #2
0
 public Task <IEnumerable <Track> > GetTopTracks(string username, int limit)
 {
     return(_controller.GetUserTopTracks(username, limit));
 }