Exemplo n.º 1
0
        public void ClaimCreationWithHasParamTest()
        {
            Hashtable input = JsonConvert.DeserializeObject <Hashtable>(ClaimInput);

            ClaimResponse actualResponse = claim.Create(input);

            ClaimSuccessCheck(actualResponse.JsonResponse());
        }
Exemplo n.º 2
0
        public void ClaimCreationWithClaimParamsObjectTest()
        {
            ClaimParams    input   = JsonConvert.DeserializeObject <ClaimParams>(ClaimInput);
            RequestOptions options = new RequestOptions();

            options.IsTest = true;

            ClaimResponse actualResponse = claim.Create(input, options);

            ClaimSuccessCheck(actualResponse.JsonResponse());
        }
Exemplo n.º 3
0
        public void ClaimCreationWithRequestOptionsTest()
        {
            RequestOptions options = new RequestOptions();

            options.IsTest = true;
            options.ApiKey = null;
            Hashtable input = JsonConvert.DeserializeObject <Hashtable>(ClaimInput);

            ClaimResponse actualResponse = claim.Create(input, options);

            ClaimSuccessCheck(actualResponse.JsonResponse());
        }
Exemplo n.º 4
0
        public void ValidBaseUrlOptionTest()
        {
            Eligible       config  = Eligible.Instance;
            RequestOptions options = new RequestOptions();

            options.IsTest  = true;
            options.ApiKey  = config.ApiKey;
            options.BaseUrl = "https://gds.eligibleapi.com/";
            Hashtable input = JsonConvert.DeserializeObject <Hashtable>(ClaimInput);

            ClaimResponse actualResponse = claim.Create(input, options);

            Assert.IsNotNull(actualResponse.JsonResponse());
        }
Exemplo n.º 5
0
        public void ClaimCreationWithJsonStringTest()
        {
            ClaimResponse actualResponse = claim.Create(ClaimInput);

            ClaimSuccessCheck(actualResponse.JsonResponse());
        }