//------<automated unit test for browsing>------------------------------ private bool Test5() { try { if (endPoint_.port == 8082) { Console.WriteLine("**********Display collections of filenames based on queries defining categories********************"); tbQueryContent.Text = "NoSqlDb"; ConditionComboBox.Text = "Category"; showFiles.SelectedIndex = 0; } else { Console.WriteLine("**********Display collections of filenames based on queries defining names********************"); tbQueryContent.Text = "Comm"; ConditionComboBox.Text = "FileName"; showFiles.SelectedIndex = 0; } Console.WriteLine(" See the file name and metadata in the browse tab"); Console.WriteLine(" You can also query by version and dependecies selecting items in the ComboBox"); BrowseButton.RaiseEvent(new RoutedEventArgs(Button.ClickEvent)); } catch (Exception ex) { Console.WriteLine(ex); return(false); } return(true); }
//----< test for Browse >--------------------------------- void testBrowse() { Descriptiontxtbox.Text = "Test File"; BrowseButton.RaiseEvent(new RoutedEventArgs(Button.ClickEvent, BrowseButton)); }