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

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