Esempio n. 1
0
 /// <summary>Constructor</summary>
 /// <param name="client">Spotify Sdk Client</param>
 public RecommendedPageViewModel(ISpotifySdkClient client)
     : base(client)
 {
     // Tracks
     Genres = new ListRecommendationGenreViewModel(client);
     // Command Actions
     client.CommandActions.RecommendationGenre = (item) => NavigatePage(item);
     client.CommandActions.Track = (item) => NavigatePage(item);
 }
        public async Task ListRecommendationGenre_Test()
        {
            // Arrange
            var model = new ListRecommendationGenreViewModel(_client);

            // Act
            await((ISupportIncrementalLoading)model.Collection).LoadMoreItemsAsync(count);
            // Assert
            Assert.IsTrue(model.Collection.Count > 0);
        }