コード例 #1
0
        public void EnrollmentUpdateWithInvalidNpiTest()
        {
            EnrollmentParams       input          = JsonConvert.DeserializeObject <EnrollmentParams>(EnrollmentInput);
            EnrollmentNpisResponse actualResponse = enrollment.Update("123", input);

            EnrollmentCreationSuccessCheck(actualResponse.JsonResponse());
        }
コード例 #2
0
 public void Setup()
 {
     enrollment  = new Enrollment();
     restClient  = new Mock <IRequestExecute>();
     param       = new Hashtable();
     paramValues = new EnrollmentParams();
 }
コード例 #3
0
        public void EnrollmentCreationWithExistingNpiTest()
        {
            EnrollmentParams       input          = JsonConvert.DeserializeObject <EnrollmentParams>(EnrollmentInput);
            EnrollmentNpisResponse actualResponse = enrollment.Create(input);

            EnrollmentCreationSuccessCheck(actualResponse.JsonResponse());
        }
コード例 #4
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));
 }
コード例 #5
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));
 }