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

            ShowArtistTask task2 = new ShowArtistTask() { ArtistName = TestArtistName };
            task2.Show();
            
            Assert.Pass();
        }
Exemplo 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();
        }
Exemplo n.º 3
0
 /// <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();
 }
Exemplo n.º 4
0
 private void searchSong(object sender, RoutedEventArgs e)
 {
     ShowArtistTask task = new ShowArtistTask();
     task.ArtistName = ArtisttextBox.Text;
     task.Show();
 }
Exemplo 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();
 }
 public void TestArtistNamePropertyPersists()
 {
     ShowArtistTask task = new ShowArtistTask() { ArtistName = TestArtistName };
     Assert.AreEqual(TestArtistName, task.ArtistName, "Expected the same Name");
 }
 public void TestArtistIdPropertyPersists()
 {
     ShowArtistTask task = new ShowArtistTask() { ArtistId = TestArtistId };
     Assert.AreEqual(TestArtistId, task.ArtistId, "Expected the same ID");
 }
 /// <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();
 }
Exemplo n.º 10
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();
 }