Beispiel #1
0
        public void Search_Users_by_word_Test()
        {
            string     user_word   = "Dima";
            User       user3       = new User("Dima", "Holubenko", 220);
            StudLibSys studLibSys4 = new StudLibSys();

            studLibSys4.Add_User(user3);

            Assert.IsNotNull(studLibSys4.Search_Users_by_word(user_word));
        }
Beispiel #2
0
        public void Delete_User_Test()
        {
            List <User> users       = new List <User>();
            string      first_name1 = "Dimaaaa";
            string      last_name1  = "Holubenko";
            int         acad_group1 = 220;
            User        user1       = new User(first_name1, last_name1, acad_group1);
            StudLibSys  studLibSys  = new StudLibSys();

            studLibSys.Add_User(user1);
            studLibSys.Delete_User(user1);

            Assert.IsNull(studLibSys.Search_Users_by_word(first_name1));
        }
Beispiel #3
0
 //кнопка пошучу за ключовим словом
 private void Click_Search_Btn(object sender, RoutedEventArgs e)
 {
     ListView_Users.ItemsSource = studLibSys.Search_Users_by_word(Search_TextBox.Text);
     Back_Search_Btn.Visibility = Visibility.Visible;
 }