コード例 #1
0
 /// <summary>
 /// Usuniecie uczniow
 /// </summary>
 /// <param name="student"></param>
 /// <param name="id"></param>
 /// <returns></returns>
 public bool Delete(Student student, int id)
 {
     if (schoolDS.DeleteStudent(id))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
コード例 #2
0
        public void deleteCheckFact()
        {
            SchoolDatabase schoolDatabase = new SchoolDatabase();

            Assert.False(schoolDatabase.DeleteStudent(99990));
        }
コード例 #3
0
        public void deleteCheck(int id)
        {
            SchoolDatabase schoolDatabase = new SchoolDatabase();

            Assert.False(schoolDatabase.DeleteStudent(id));
        }