public GetAllDataKecamatanResponse GetAllDataKecamatan()
        {
            GetAllDataKecamatanResponse response = new GetAllDataKecamatanResponse();

            try
            {
                List <Kecamatan> _listKecamatan = _kecamatanRepo.GetAll();
                response.KecamatanList.AddRange(_listKecamatan);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.ToString());
            }
            return(response);
        }
Exemple #2
0
        public void GetAllDataKecamatanTest()
        {
            GetAllDataKecamatanResponse response = _kecamatanService.GetAllDataKecamatan();

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