Exemplo n.º 1
0
        public void ListData_ValidData_NoEx()
        {
            using (var trans = TransHelper.NewScope())
            {
                //  arrange
                var item1 = DepositDataFactory();
                _depositDal.Insert(item1);
                var item2 = item1.CloneObject();
                item2.DepositID = "A2";
                _depositDal.Insert(item2);
                var expected = new List <DepositModel>
                {
                    item1, item2
                };

                //  act
                var actual = _depositDal.ListData("17-02-2019", "17-02-2019");

                //  assert
                actual.Should().BeEquivalentTo(expected,
                                               config => config
                                               .Excluding(x => x.PihakKeduaName)
                                               .Excluding(x => x.JenisBayarName));
            }
        }
Exemplo n.º 2
0
 public IEnumerable <DepositModel> ListData(string tgl1, string tgl2)
 {
     return(_depositDal.ListData(tgl1, tgl2));
 }