Exemple #1
0
        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);
        }
Exemple #2
0
        public void GetAllDataStaffTest()
        {
            GetAllDataStaffResponse response = _staffService.GetAllDataStaff();

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