public void TransactionBasariliAdoTemplateConnectionYonetimiIle() { herseyiSil(); MusteriBs bs = new MusteriBs(); bs.TransactionBasariliAdoTemplateConnectionYonetimiIle(); Assert.Greater(bs.TablodakiSatirSayisi, 0); }
public void TransactionBasarili() { herseyiSil(); MusteriBs bs = new MusteriBs(); bs.TransactionBasarili(); Assert.Greater(bs.TablodakiSatirSayisi, 0); }
public void Ekle() { MusteriBs wrapper = new MusteriBs(); Musteri m = new Musteri(); m.MusteriKey = Guid.NewGuid(); m.Adi = "Atilla"; m.Soyadi = "Ozgur"; wrapper.Ekle(m); }
public void TransactionRollBackBekliyoruzAdoTemplateConnectionYonetimiIle() { herseyiSil(); MusteriBs bs = new MusteriBs(); try { bs.TransactionRollBackBekliyoruzAdoTemplateConnectionYonetimiIle(); Assert.Fail("buraya gelmemeliydi, veritabaninda Aciklama kolonu not null olmali"); } catch { } Assert.AreEqual(0, bs.TablodakiSatirSayisi); }