Exemple #1
0
        public void ListDataTest()
        {
            using (var trans = TransHelper.NewScope())
            {
                //  arrange
                var expected1 = BPKasDataFactory();
                _bpKasDal.Insert(expected1);
                var expected2 = expected1.CloneObject();
                expected2.BPKasID = "A2";
                _bpKasDal.Insert(expected2);

                var expected = new List <BPKasModel>
                {
                    expected1, expected2
                };

                //  act
                var actual = _bpKasDal.ListData(expected1.Tgl, expected1.Tgl);

                //  assert
                actual.Should().BeEquivalentTo(expected);
            }
        }
Exemple #2
0
        public IEnumerable <BPKasModel> ListData(string tgl1, string tgl2)
        {
            var result = _bpKasDal.ListData(tgl1, tgl2);

            return(result);
        }