public async Task ListDeviceViewModel_Test() { // Arrange var model = new ListDeviceViewModel(_client); // Act await((ISupportIncrementalLoading)model.Collection).LoadMoreItemsAsync(count); // Assert Assert.IsTrue(model.Collection.Count > 0); }
/// <summary>Constructor</summary> /// <param name="client">Spotify Sdk Client</param> public CurrentlyPlayingPageViewModel(ISpotifySdkClient client) : base(client) { // Values Devices = new ListDeviceViewModel(client); // Events GetCurrentlyPlaying(); // User Playback Forward UserPlaybackForwardCommand = new GenericCommand <CurrentlyPlayingResponse>(UserPlaybackForwardHandler); // User Playback Back Forward UserPlaybackBackCommand = new GenericCommand <CurrentlyPlayingResponse>(UserPlaybackBackHandler); }