Example #1
0
        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);
        }
Example #2
0
        public void GetAllWarkahTest()
        {
            GetAllDataWarkahResponse response = _warkahService.GetAllDataWarkah();

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