public void ListDataTest() { using (var trans = TransHelper.NewScope()) { // arrange var expected1 = LunasKasBonDataFactory(); _bpPiutangDal.Insert(expected1); var expected2 = expected1.CloneObject(); expected2.LunasKasBonID = "A2"; _bpPiutangDal.Insert(expected2); var expected = new List <LunasKasBonModel> { expected1, expected2 }; // act var actual = _bpPiutangDal.ListData(expected1.Tgl, expected1.Tgl); // assert actual.Should().BeEquivalentTo(expected); } }
public IEnumerable <LunasKasBonModel> ListData(string tgl1, string tgl2) { return(_lunasKasBonDal.ListData(tgl1, tgl2)); }