public IEnumerable <JenisSuratDinasModel> ListData() { // REPO-OP var result = _jenisSuratDinasDal.ListData(); // RETURN return(result); }
public void ListData_Test() { using (var trans = TransHelper.NewScope()) { // arrange var expected = new List <JenisSuratDinasModel> { JenisSuratDinasTestData() }; _sut.Insert(JenisSuratDinasTestData()); // act var actual = _sut.ListData(); // assert actual.Should().BeEquivalentTo(expected); } }