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

            ShowArtistTask task2 = new ShowArtistTask() { ArtistName = TestArtistName };
            task2.Show();

            Assert.Pass();
        }
 private void ShowArtistTask(object sender, RoutedEventArgs e)
 {
     ShowArtistTask task = new ShowArtistTask();
     task.ArtistName = "Lady Gaga";
     task.Show();
 }
Beispiel #3
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();
 }
 private void ShowArtist(object sender, RoutedEventArgs e)
 {
     ShowArtistTask task = new ShowArtistTask();
     task.ArtistId = this._artistId;
     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");
 }
 public void TestArtistIdOrNamePropertyIsRequiredForShow()
 {
     ShowArtistTask task = new ShowArtistTask();
     task.Show();
 }