Пример #1
0
        public LunasKasBonModel GetData(string id)
        {
            var header = _lunasKasBonDal.GetData(id);
            var detail = _lunasKasBonDetilDal.ListData(id);

            if (header != null)
            {
                header.ListLunas = detail;
            }
            return(header);
        }
Пример #2
0
        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);
            }
        }