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); } }
public IEnumerable <BPKasModel> ListData(string tgl1, string tgl2) { var result = _bpKasDal.ListData(tgl1, tgl2); return(result); }