public void EnrollmentUpdateWithInvalidNpiTest() { EnrollmentParams input = JsonConvert.DeserializeObject <EnrollmentParams>(EnrollmentInput); EnrollmentNpisResponse actualResponse = enrollment.Update("123", input); EnrollmentCreationSuccessCheck(actualResponse.JsonResponse()); }
private static void PerformEnrollmentCreationTest(string jsonResponse) { Fixture fixture = new Fixture(); EnrollmentNpisResponse sut = fixture.Create <EnrollmentNpisResponse>(); TestHelper.PropertiesAreEqual(sut, jsonResponse); }
public void EnrollmentUpdateWithHashParamTest() { Hashtable input = JsonConvert.DeserializeObject <Hashtable>(EnrollmentInput); EnrollmentNpisResponse actualResponse = enrollment.Update("123", input); EnrollmentCreationSuccessCheck(actualResponse.JsonResponse()); }
public void EnrollmentCreationWithExistingNpiTest() { EnrollmentParams input = JsonConvert.DeserializeObject <EnrollmentParams>(EnrollmentInput); EnrollmentNpisResponse actualResponse = enrollment.Create(input); EnrollmentCreationSuccessCheck(actualResponse.JsonResponse()); }
private static void EnrollmentCreationSuccessCheck(string jsonResponse) { string expectedResponse = TestHelper.GetJson(TestResource.ExpectedResponse + "EnrollmentSuccess.json"); TestHelper.CompareProperties(expectedResponse, jsonResponse); EnrollmentNpisResponse expectedObj = JsonConvert.DeserializeObject <EnrollmentNpisResponse>(expectedResponse); EnrollmentNpisResponse actualObj = JsonConvert.DeserializeObject <EnrollmentNpisResponse>(jsonResponse); TestHelper.PropertyValuesAreEquals(actualObj, expectedObj); }
public void GetEnrollmentByIdTest() { EnrollmentNpisResponse actualResponse = enrollment.GetByEnrollmentNpiId("123"); string expectedResponse = TestHelper.GetJson(TestResource.ExpectedResponse + "EnrollmentById.json"); TestHelper.CompareProperties(expectedResponse, actualResponse.JsonResponse()); EnrollmentNpisResponse expectedObj = JsonConvert.DeserializeObject <EnrollmentNpisResponse>(expectedResponse); EnrollmentNpisResponse actualObj = JsonConvert.DeserializeObject <EnrollmentNpisResponse>(actualResponse.JsonResponse()); TestHelper.PropertyValuesAreEquals(actualObj, expectedObj); }
public void EnrollmentUpdateWithJsonParams() { EnrollmentNpisResponse actualResponse = enrollment.Update("123", EnrollmentInput); EnrollmentCreationSuccessCheck(actualResponse.JsonResponse()); }