public void TestShowArtistGoesAheadWhenItCan()
        {
            ShowGigsTask task1 = new ShowGigsTask() { SearchTerms = TestTerm };
            task1.Show();

            ShowGigsTask task2 = new ShowGigsTask();
            task2.Show();

            Assert.Pass();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Launches show gigs task.
 /// </summary>
 /// <param name="sender">Show Gigs Task button</param>
 /// <param name="e">Event arguments</param>
 private void ShowGigsTask(object sender, RoutedEventArgs e)
 {
     ShowGigsTask task = new ShowGigsTask();
     task.Show();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Launches show gigs task with a search term.
 /// </summary>
 /// <param name="sender">Search Gigs Task button</param>
 /// <param name="e">Event arguments</param>
 private void SearchGigsTask(object sender, RoutedEventArgs e)
 {
     ShowGigsTask task = new ShowGigsTask();
     task.SearchTerms = "New York";
     task.Show();
 }
Ejemplo n.º 4
0
 private void listItemClicked(object sender, SelectionChangedEventArgs e)
 {
     ListBox list = sender as ListBox;
     switch (list.SelectedIndex)
     {
         case 0:
             {
                 NavigationService.Navigate(new Uri("/Page1.xaml", UriKind.Relative));
                 break;
             }
         case 1:
             {
                 NavigationService.Navigate(new Uri("/Songs.xaml", UriKind.Relative));
                 break;
             }
         case 2:
             {
                 NavigationService.Navigate(new Uri("/Mix.xaml", UriKind.Relative));
                 break;
             }
         case 3:
             {
                 ShowGigsTask task = new ShowGigsTask();
                 task.Show();
                 break;
             }
     }
     list.SelectedIndex = -1;
 }
 public void TestSearchTermPropertyPersists()
 {
     ShowGigsTask task = new ShowGigsTask() { SearchTerms = TestTerm };
     Assert.AreEqual(TestTerm, task.SearchTerms, "Expected the same term");
 }