public void Delete(ILaporanDinasKey key) { var ld = _laporanDinasDal.GetData(key); // proses simpan using (var trans = TransHelper.NewScope()) { // update ke db _laporanDinasDal.Delete(ld); // commit changes trans.Complete(); } }
public void GetData_Test() { using (var trans = TransHelper.NewScope()) { // arrange var expected = LaporanDinasTestData(); _sut.Insert(expected); // act var actual = _sut.GetData((ILaporanDinasKey)expected); // assert actual.Should().BeEquivalentTo(expected); } }