public void TestBolumUpdate() { _BolumBll = new BolumManager(); Bolum Bolum = new Bolum(); Bolum.BolumAdi = "TestBolum"; int id = _BolumBll.BolumUpdate(Bolum); Assert.AreNotEqual(id, 0); }
private void btnUpdate_Click(object sender, EventArgs e) { Bolum Bolum1 = new Bolum(); Bolum1.BolumAdi = editBolum.Text; Bolum1.BolumId = BolumID; BolumManager BolumUpdate = new BolumManager(); if (BolumUpdate.BolumUpdate(Bolum1) != 0) { BolumListele(); MessageBox.Show("Bolum bilgileri guncellestirildi!!"); } else { MessageBox.Show("Bolum guncellestirirken bir hata meydana geldi lütfen destek talep ediniz.Hata kodu : #98565"); } }