public void FailedGetAllEmployeeDetailRequestReturnsNoEmployees() { var peopleHrUsers = PeopleHrService.GetAllEmployeeDetail(new GetAllEmployeeDetailRequest { APIKey = "", IncludeLeavers = false }); Assert.IsTrue(peopleHrUsers.Result == null); }
public void SuccessfulGetAllEmployeeDetailRequestReturnsEmployees() { var peopleHrUsers = PeopleHrService.GetAllEmployeeDetail(new GetAllEmployeeDetailRequest { APIKey = ApiKey, IncludeLeavers = false }); Assert.IsTrue(peopleHrUsers.Result.Any()); }
public void FailedGetNextYearHolidayEntitlementReturnsNoHolidayEntitlements() { var peopleHrUsers = PeopleHrService.GetAllEmployeeDetail(new GetAllEmployeeDetailRequest { APIKey = ApiKey, IncludeLeavers = false }); var peopleHrUser = PeopleHrService.GetNextYearHolidayEntitlement(new GetHolidayEntitlementRequest() { APIKey = "", EmployeeId = peopleHrUsers.Result.First().EmployeeId.DisplayValue, }); Assert.IsTrue(peopleHrUser.Result == null); }
public void FailedGetEmployeeDetailByIdRequestReturnsNoEmployee() { var peopleHrUsers = PeopleHrService.GetAllEmployeeDetail(new GetAllEmployeeDetailRequest { APIKey = ApiKey, IncludeLeavers = false }); var peopleHrUser = PeopleHrService.GetEmployeeDetailById(new GetEmployeeDetailByIdRequest { APIKey = "", EmployeeId = peopleHrUsers.Result.First().EmployeeId.DisplayValue }); Assert.IsTrue(peopleHrUser.Result == null); }
public void SuccessfulGetAllDocumentReturnsDocuments() { var peopleHrUsers = PeopleHrService.GetAllEmployeeDetail(new GetAllEmployeeDetailRequest { APIKey = ApiKey, IncludeLeavers = false }); var peopleHrUser = PeopleHrService.GetAllDocument(new GetAllDocumentRequest { APIKey = ApiKey, EmployeeId = peopleHrUsers.Result.First().EmployeeId.DisplayValue }); Assert.IsTrue(peopleHrUser.Result != null); }
public void FailedGetHistoryByEmployeeIdAndFieldNameReturnsNoFieldHistorys() { var peopleHrUsers = PeopleHrService.GetAllEmployeeDetail(new GetAllEmployeeDetailRequest { APIKey = ApiKey, IncludeLeavers = false }); var peopleHrUser = PeopleHrService.GetHistoryByEmployeeIdAndFieldName(new GetHistoryByEmployeeIdAndFieldNameRequest { APIKey = "", EmployeeId = peopleHrUsers.Result.First().EmployeeId.DisplayValue, FieldName = FieldWithHistory.EMPLOYEE_CONTACT_INFORMATION_ADDRESS }); Assert.IsTrue(peopleHrUser.Result == null); }
public void FailedGetHolidayEntitlementReturnsNoHolidayEntitlements() { var peopleHrUsers = PeopleHrService.GetAllEmployeeDetail(new GetAllEmployeeDetailRequest { APIKey = ApiKey, IncludeLeavers = false }); var peopleHrUser = PeopleHrService.GetHolidayEntitlement(new GetHolidayEntitlementRequest() { APIKey = "", EmployeeId = peopleHrUsers.Result.First().EmployeeId.DisplayValue, StartDate = DateTime.Now.AddYears(-1).ToString("yyyy-MM-dd"), EndDate = DateTime.Now.ToString("yyyy-MM-dd") }); Assert.IsTrue(peopleHrUser.Result == null); }
public void SuccessfulGetAbsenceDetailReturnsAbsences() { var peopleHrUsers = PeopleHrService.GetAllEmployeeDetail(new GetAllEmployeeDetailRequest { APIKey = ApiKey, IncludeLeavers = false }); var peopleHrUser = PeopleHrService.GetAbsenceDetail(new GetAbsenceDetailRequest() { APIKey = ApiKey, EmployeeId = peopleHrUsers.Result.First().EmployeeId.DisplayValue, StartDate = DateTime.Now.AddYears(-1).ToString("yyyy-MM-dd"), EndDate = DateTime.Now.ToString("yyyy-MM-dd") }); Assert.IsTrue(peopleHrUser.Result != null); }