public BPPiutangModel GetData(string piutangID) { var header = _bpPiutangDal.GetData(piutangID); if (header == null) return null; var detil = _bpPiutangDetilDal.ListData(piutangID); header.ListLunas = detil; return header; }
public void GetDataTest() { using (var trans = TransHelper.NewScope()) { // arrange var expected = BPPiutangDataFactory(); _bpPiutangDal.Insert(expected); // act var actual = _bpPiutangDal.GetData("A1"); // assert actual.Should().BeEquivalentTo(expected); } }