Пример #1
0
        public async Task UpdateStatus(string caseId, ETaskStatus status, EFosteringApplicationForm form)
        {
            var fields = new FormFieldBuilder()
                         .AddField(form.GetFormStatusFieldName(), status.GetTaskStatus())
                         .Build();

            var response = await _verintServiceGateway.UpdateCaseIntegrationFormField(new IntegrationFormFieldsUpdateModel
            {
                CaseReference         = caseId,
                IntegrationFormName   = _applicationFormName,
                IntegrationFormFields = fields
            });

            if (response.StatusCode != HttpStatusCode.OK)
            {
                throw new Exception(
                          $"Application Service. UpdateStatus: Failed to update status. Verint service response: {response}");
            }
        }
 public void GetFormStatusFieldName_ShouldReturnCorectFieldNames(string expected,
                                                                 EFosteringApplicationForm fosteringApplicationForm)
 {
     Assert.Equal(expected, fosteringApplicationForm.GetFormStatusFieldName());
 }