public void EnrollmentUpdateWithInvalidNpiTest() { EnrollmentParams input = JsonConvert.DeserializeObject <EnrollmentParams>(EnrollmentInput); EnrollmentNpisResponse actualResponse = enrollment.Update("123", input); EnrollmentCreationSuccessCheck(actualResponse.JsonResponse()); }
public void Setup() { enrollment = new Enrollment(); restClient = new Mock <IRequestExecute>(); param = new Hashtable(); paramValues = new EnrollmentParams(); }
public void EnrollmentCreationWithExistingNpiTest() { EnrollmentParams input = JsonConvert.DeserializeObject <EnrollmentParams>(EnrollmentInput); EnrollmentNpisResponse actualResponse = enrollment.Create(input); EnrollmentCreationSuccessCheck(actualResponse.JsonResponse()); }
/// <summary> /// It's a PUT request to update a Enrollment /// https://gds.eligibleapi.com/rest#update-enrollment /// </summary> /// <param name="enrollmentNpiId"></param> /// <param name="jsonParams">Required parameters in the form of EnrollmentParams object</param> /// <returns></returns> public EnrollmentNpisResponse Update(string enrollmentNpiId, EnrollmentParams enrollmentParams, RequestOptions options = null) { return(Update(enrollmentNpiId, JsonConvert.SerializeObject(enrollmentParams, Formatting.Indented), options)); }
/// <summary> /// Create Enrollment. It's a POST request and the parameters should be in JSON format in the body. /// https://gds.eligibleapi.com/rest#create-enrollment /// </summary> /// <param name="enrollmentParams">object contains required params in EnrollmentParams class format</param> /// <returns></returns> public EnrollmentNpisResponse Create(EnrollmentParams enrollmentParams, RequestOptions options = null) { return(this.Create(JsonSerialize(enrollmentParams), options)); }