public async Task TestGetTrackInfo() { var trackIds = new[] { "Id" }; var tracks = new List <MiniPie.Core.SpotifyWeb.Models.Track>(); _spotifyWebApi.GetTrackInfo(trackIds).Returns(tracks); var result = await _spotifyController.GetTrackInfo(trackIds); await _spotifyWebApi.Received(1).GetTrackInfo(trackIds); Assert.Equal(tracks, result); }