public GetAllDataWarkahResponse GetAllDataWarkah() { GetAllDataWarkahResponse response = new GetAllDataWarkahResponse(); try { List <Warkah> _listWarkah = _warkahRepo.GetAll(); response.WarkahList.AddRange(_listWarkah); } catch (Exception ex) { throw new Exception(ex.ToString()); } return(response); }
public void GetAllWarkahTest() { GetAllDataWarkahResponse response = _warkahService.GetAllDataWarkah(); Assert.IsTrue(response.Messages.Count == 0, "Failed get all data"); }