コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 public void Setup()
 {
     enrollment = new Enrollment();
     restClient = new Mock<IRequestExecute>();
     param = new Hashtable();
     paramValues = new EnrollmentParams();
 }