public LunasKasBonModel GetData(string id) { var header = _lunasKasBonDal.GetData(id); var detail = _lunasKasBonDetilDal.ListData(id); if (header != null) { header.ListLunas = detail; } return(header); }
public void GetDataTest() { using (var trans = TransHelper.NewScope()) { // arrange var expected = LunasKasBonDataFactory(); _bpPiutangDal.Insert(expected); // act var actual = _bpPiutangDal.GetData("A1"); // assert actual.Should().BeEquivalentTo(expected); } }