public GetAllDataJenisHakResponse GetAllDataJenisHak() { GetAllDataJenisHakResponse response = new GetAllDataJenisHakResponse(); try { List <JenisHak> _listJenisHak = _jenisHakRepo.GetAll(); response.JenisHakList.AddRange(_listJenisHak); } catch (Exception ex) { throw new Exception(ex.ToString()); } return(response); }
public void GetAllJenisHakTest() { GetAllDataJenisHakResponse response = _jenisHakService.GetAllDataJenisHak(); Assert.IsTrue(response.Messages.Count == 0, "Failed get all data"); }