Exemplo n.º 1
0
        public void DeleteVacancyCanAuthenticate()
        {
            var request = new DeleteVacancyRequestMessage
            {
                Security = new Services.External.JobSearch.Security {
                    UsernameToken = _usernameToken
                },
                Body = new DeleteVacancyRequestBody()
            };

            CanAuthenticate(request, (c, r) => c.DeleteVacancy(r), EsiExecutionStatus.Failed, r => r.Header.executionStatus);
        }
Exemplo n.º 2
0
        private void DeleteVacancy(long vacancyId, int integrityControlNumber)
        {
            var request = new DeleteVacancyRequestMessage
            {
                Security = new Services.External.JobSearch.Security {
                    UsernameToken = _usernameToken
                },
                Body = new DeleteVacancyRequestBody
                {
                    vacancyID = vacancyId,
                    integrityControlNumber = integrityControlNumber,
                }
            };

            Call(request, (c, r) => c.DeleteVacancy(r));
        }