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

            EnrollmentCreationSuccessCheck(actualResponse.JsonResponse());
        }
コード例 #2
0
        private static void PerformEnrollmentCreationTest(string jsonResponse)
        {
            Fixture fixture            = new Fixture();
            EnrollmentNpisResponse sut = fixture.Create <EnrollmentNpisResponse>();

            TestHelper.PropertiesAreEqual(sut, jsonResponse);
        }
コード例 #3
0
        public void EnrollmentUpdateWithHashParamTest()
        {
            Hashtable input = JsonConvert.DeserializeObject <Hashtable>(EnrollmentInput);
            EnrollmentNpisResponse actualResponse = enrollment.Update("123", input);

            EnrollmentCreationSuccessCheck(actualResponse.JsonResponse());
        }
コード例 #4
0
        public void EnrollmentCreationWithExistingNpiTest()
        {
            EnrollmentParams       input          = JsonConvert.DeserializeObject <EnrollmentParams>(EnrollmentInput);
            EnrollmentNpisResponse actualResponse = enrollment.Create(input);

            EnrollmentCreationSuccessCheck(actualResponse.JsonResponse());
        }
コード例 #5
0
        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);
        }
コード例 #6
0
        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);
        }
コード例 #7
0
        public void EnrollmentUpdateWithJsonParams()
        {
            EnrollmentNpisResponse actualResponse = enrollment.Update("123", EnrollmentInput);

            EnrollmentCreationSuccessCheck(actualResponse.JsonResponse());
        }