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); }
public void GetAllDataDesaTest() { GetAllDataDesaResponse response = _desaService.GetAllDataDesa(); Assert.IsTrue(response.Messages.Count == 0, "Failed get all data"); }