Ejemplo n.º 1
0
        public void GetAllPayersWithCoverageEndPointTest()
        {
            PayersResponse actualPayers     = payers.All("coverage");
            string         expectedResponse = TestHelper.GetJson(TestResource.ExpectedResponse + "PayersWithCoverageEndPoint.json");

            TestHelper.CompareProperties(expectedResponse, actualPayers.JsonResponse());
        }
Ejemplo n.º 2
0
        public void GetAllPayersWithEndPointAndEnrollmentRequiredTest()
        {
            PayersResponse actualPayers     = payers.All("coverage", "false");
            string         expectedResponse = TestHelper.GetJson(TestResource.ExpectedResponse + "PayersWithEndpointAndEnrollment.json");

            TestHelper.CompareProperties(expectedResponse, actualPayers.JsonResponse());
        }
Ejemplo n.º 3
0
        public void GetAllPayersTest()
        {
            PayersResponse actualPayers     = payers.All();
            string         expectedResponse = TestHelper.GetJson(TestResource.ExpectedResponse + "PayersList.json");

            TestHelper.CompareProperties(expectedResponse, actualPayers.JsonResponse());
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Get all the payers
        /// https://gds.eligibleapi.com/v1.5/payers.json
        /// </summary>
        /// <returns>List of EligibleService.Model.Payer</returns>
        public PayersResponse All([Optional, DefaultParameterValue("")] string endpoint, [Optional, DefaultParameterValue("")] string enrollmentRequired, RequestOptions options = null)
        {
            param = new Hashtable();
            param.Add("endpoint", endpoint);
            param.Add("enrollment_required", enrollmentRequired);
            response = ExecuteObj.Execute(EligibleResources.PathToPayers, SetRequestOptionsObject(options), param);
            var            formatResponse = RequestProcess.SimpleResponseValidation <Collection <PayerData> >(response);
            PayersResponse payers         = new PayersResponse();

            payers.Payers = formatResponse;
            payers.SetJsonResponse(response.Content);
            return(payers);
        }