/// <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); }
/// <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); }
public void Setup() { enrollment = new Enrollment(); restClient = new Mock<IRequestExecute>(); param = new Hashtable(); paramValues = new EnrollmentParams(); }