public void ListDataTest() { using (var trans = TransHelper.NewScope()) { // arrange var expected1 = StokAdjustmentDataFactory(); var expected2 = expected1.CloneObject(); expected2.StokAdjustmentID = "A2"; var expected = new List<StokAdjustmentModel> { expected1, expected2 }; _stokAdjustmentDal.Insert(expected1); _stokAdjustmentDal.Insert(expected2); // act var actual = _stokAdjustmentDal.ListData(expected1.TglTrs, expected2.TglTrs); // assert actual.Should().BeEquivalentTo(expected, config => config .Excluding(x => x.ListBrg)); } }
public IEnumerable <StokAdjustmentModel> ListData(string tgl1, string tgl2) { return(_stokAdjustmentDal.ListData(tgl1, tgl2)); }