Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
 public IEnumerable <LunasKasBonModel> ListData(string tgl1, string tgl2)
 {
     return(_lunasKasBonDal.ListData(tgl1, tgl2));
 }