Beispiel #1
0
        public GetAllDataUserResponse GetAllDataUser()
        {
            GetAllDataUserResponse response = new GetAllDataUserResponse();

            try
            {
                List <User> _listUser = _userRepo.GetAll();
                response.UserList.AddRange(_listUser);
            }
            catch (Exception ex)
            {
                response.Messages.Add(ex.ToString());
            }

            return(response);
        }
Beispiel #2
0
        public void GetAllDataUser()
        {
            GetAllDataUserResponse response = _userService.GetAllDataUser();

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