public void TestShowArtistGoesAheadWhenItCan()
        {
            ShowArtistTask task1 = new ShowArtistTask() { ArtistId = TestArtistId };
            task1.Show();

            ShowArtistTask task2 = new ShowArtistTask() { ArtistName = TestArtistName };
            task2.Show();
            
            Assert.Pass();
        }
Esempio n. 2
0
        /// <summary>
        /// Launches Nokia Music App to show information on a selected artist.
        /// </summary>
        /// <param name="id">id of the artist.</param>
        public void LaunchArtist(string id)
        {
            if (!initialized)
            {
                return;
            }

            ShowArtistTask task = new ShowArtistTask();
            task.ArtistId = id;
            task.Show();
        }
 /// <summary>
 /// Launches show artist task.
 /// </summary>
 /// <param name="sender">Show Artist Task button</param>
 /// <param name="e">Event arguments</param>
 private void ShowArtistTask(object sender, RoutedEventArgs e)
 {
     ShowArtistTask task = new ShowArtistTask();
     task.ArtistName = "Lady Gaga";
     task.Show();
 }
Esempio n. 4
0
 private void searchSong(object sender, RoutedEventArgs e)
 {
     ShowArtistTask task = new ShowArtistTask();
     task.ArtistName = ArtisttextBox.Text;
     task.Show();
 }
Esempio n. 5
0
 /// <summary>
 /// Launches Nokia Music to show details for the artist using the ShowArtistTask
 /// </summary>
 public void Show()
 {
     ShowArtistTask task = new ShowArtistTask() { ArtistId = this.Id };
     task.Show();
 }
 public void TestArtistIdOrNamePropertyIsRequiredForShow()
 {
     ShowArtistTask task = new ShowArtistTask();
     task.Show();
 }
 /// <summary>
 /// Launches Nokia Music app to an artist view.
 /// </summary>
 /// <param name="sender">"Show in Nokia Music" button</param>
 /// <param name="e">Event arguments</param>
 private void ShowArtist(object sender, RoutedEventArgs e)
 {
     ShowArtistTask task = new ShowArtistTask();
     task.ArtistId = this._artistId;
     task.Show();
 }
Esempio n. 8
0
 /// <summary>
 ///     Launches show artist task.
 /// </summary>
 /// <param name="artist">The artist name</param>
 static public void LaunchArtist(string artist)
 {
     var task = new ShowArtistTask { ArtistName = artist };
     task.Show();
 }