Esempio n. 1
0
        public GetAllDataDesaResponse GetAllDataDesa()
        {
            GetAllDataDesaResponse response = new GetAllDataDesaResponse();

            try
            {
                List <Desa> _listDesa = _desaRepo.GetAll();
                response.DesaList.AddRange(_listDesa);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.ToString());
            }
            return(response);
        }
Esempio n. 2
0
        public void GetAllDataDesaTest()
        {
            GetAllDataDesaResponse response = _desaService.GetAllDataDesa();

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