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