public void GetDataTest() { using (var trans = TransHelper.NewScope()) { // arrange var expected = ReturDepositDataFactory(); _returDepositDal.Insert(expected); // act var actual = _returDepositDal.GetData("A1"); // assert actual.Should().BeEquivalentTo(expected, config => config .Excluding(x => x.PihakKeduaName) .Excluding(x => x.JenisKasName)); } }
public ReturDepositModel GetData(string id) { return(_returDepositDal.GetData(id)); }