Exemple #1
0
        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);
        }
Exemple #2
0
        public void GetAllJenisHakTest()
        {
            GetAllDataJenisHakResponse response = _jenisHakService.GetAllDataJenisHak();

            Assert.IsTrue(response.Messages.Count == 0, "Failed get all data");
        }