public void ListDataTest() { using (var trans = TransHelper.NewScope()) { // arrange var expected1 = ReturDepositDataFactory(); _returDepositDal.Insert(expected1); var expected2 = expected1.CloneObject(); expected2.ReturDepositID = "A2"; _returDepositDal.Insert(expected2); var expected = new List <ReturDepositModel> { expected1, expected2 }; // act var actual = _returDepositDal.ListData(expected1.Tgl, expected1.Tgl); // assert actual.Should().BeEquivalentTo(expected, config => config .Excluding(x => x.PihakKeduaName) .Excluding(x => x.JenisKasName)); } }
public IEnumerable <ReturDepositModel> ListData(string tgl1, string tgl2) { return(_returDepositDal.ListData(tgl1, tgl2)); }