public GetAllDataStaffResponse GetAllDataStaff() { GetAllDataStaffResponse response = new GetAllDataStaffResponse(); try { List <Staff> _listStaff = _staffRepo.GetAll(); response.StaffList.AddRange(_listStaff); } catch (Exception ex) { throw new Exception(ex.ToString()); } return(response); }
public void GetAllDataStaffTest() { GetAllDataStaffResponse response = _staffService.GetAllDataStaff(); Assert.IsTrue(response.Messages.Count == 0, "Failed get all data"); }