public void SimpleTokenWithEcheck()
 {
     var registerTokenRequest = new registerTokenRequestType();
     registerTokenRequest.orderId = "12344";
     var echeckObj = new echeckForTokenType();
     echeckObj.accNum = "12344565";
     echeckObj.routingNum = "123476545";
     registerTokenRequest.echeckForToken = echeckObj;
     registerTokenRequest.reportGroup = "Planets";
     var rtokenResponse = litle.RegisterToken(registerTokenRequest);
     StringAssert.AreEqualIgnoringCase("Account number was successfully registered", rtokenResponse.message);
 }
Esempio n. 2
0
        public void SimpleTokenWithEcheck()
        {
            registerTokenRequestType registerTokenRequest = new registerTokenRequestType();

            registerTokenRequest.orderId = "12344";
            echeckForTokenType echeckObj = new echeckForTokenType();

            echeckObj.accNum     = "12344565";
            echeckObj.routingNum = "123476545";
            registerTokenRequest.echeckForToken = echeckObj;
            registerTokenRequest.reportGroup    = "Planets";
            registerTokenResponse rtokenResponse = litle.RegisterToken(registerTokenRequest);

            StringAssert.AreEqualIgnoringCase("Account number was successfully registered", rtokenResponse.message);
        }
        public void test54()
        {
            registerTokenRequestType request = new registerTokenRequestType();

            request.orderId = "54";
            echeckForTokenType echeck = new echeckForTokenType();

            echeck.accNum          = "1022222102";
            echeck.routingNum      = "1145_7895";
            request.echeckForToken = echeck;;

            registerTokenResponse response = litle.RegisterToken(request);

            Assert.AreEqual("900", response.response);
        }
        public void Test54()
        {
            var request = new registerTokenRequest();

            request.id      = "1";
            request.orderId = "54";
            var echeck = new echeckForTokenType();

            echeck.accNum          = "1022222102";
            echeck.routingNum      = "1145_7895";
            request.echeckForToken = echeck;;

            var response = this.SendTransaction <registerTokenResponse>(request);

            Assert.AreEqual("900", response.response);
        }
        public void test54()
        {
            var request = new registerTokenRequestType();

            request.orderId = "54";
            var echeck = new echeckForTokenType();

            echeck.accNum          = "1022222102";
            echeck.routingNum      = "1145_7895";
            request.echeckForToken = echeck;
            ;

            var response = litle.RegisterToken(request);

            Assert.AreEqual("900", response.response);
            Assert.AreEqual("Invalid bank routing number", response.message);
        }
        public void test53()
        {
            registerTokenRequestType request = new registerTokenRequestType();

            request.orderId = "53";
            echeckForTokenType echeck = new echeckForTokenType();

            echeck.accNum          = "1099999998";
            echeck.routingNum      = "114567895";
            request.echeckForToken = echeck;;

            registerTokenResponse response = litle.RegisterToken(request);

            Assert.AreEqual(methodOfPaymentTypeEnum.EC, response.type);
            Assert.AreEqual("998", response.eCheckAccountSuffix);
            Assert.AreEqual("801", response.response);
            Assert.AreEqual("Account number was successfully registered", response.message);
            Assert.AreEqual("111922223333000998", response.litleToken);
        }
Esempio n. 7
0
        public void TokenEcheckMissingRequiredField()
        {
            registerTokenRequestType registerTokenRequest = new registerTokenRequestType();

            registerTokenRequest.orderId = "12344";
            echeckForTokenType echeckObj = new echeckForTokenType();

            echeckObj.routingNum = "123476545";
            registerTokenRequest.echeckForToken = echeckObj;
            registerTokenRequest.reportGroup    = "Planets";
            try
            {
                //expected exception;
                registerTokenResponse rtokenResponse = litle.RegisterToken(registerTokenRequest);
            }
            catch (LitleOnlineException e)
            {
                Assert.True(e.Message.StartsWith("Error validating xml data against the schema"));
            }
        }
        public void Test53()
        {
            registerTokenRequestType request = new registerTokenRequestType();

            request.id      = "1";
            request.orderId = "53";
            echeckForTokenType echeck = new echeckForTokenType();

            echeck.accNum          = "1099999998";
            echeck.routingNum      = "114567895";
            request.echeckForToken = echeck;;

            registerTokenResponse response = cnp.RegisterToken(request);
            //TODO: //getting null as response type
            //Assert.AreEqual(methodOfPaymentTypeEnum.EC, response.type);
            //TODO: //getting null as eCheckAccountSuffix
            //Assert.AreEqual("998", response.eCheckAccountSuffix);
            //TODO: //getting 900 as response and corresponding message
            //Assert.AreEqual("801", response.response);
            //Assert.AreEqual("Account number was successfully registered", response.message);
            //TODO: //getting null as cnptoken
            //Assert.AreEqual("111922223333000998", response.cnpToken);
        }
 public void TokenEcheckMissingRequiredField()
 {
     var registerTokenRequest = new registerTokenRequestType();
     registerTokenRequest.orderId = "12344";
     var echeckObj = new echeckForTokenType();
     echeckObj.routingNum = "123476545";
     registerTokenRequest.echeckForToken = echeckObj;
     registerTokenRequest.reportGroup = "Planets";
     try
     {
         //expected exception;
         var rtokenResponse = litle.RegisterToken(registerTokenRequest);
     }
     catch (LitleOnlineException e)
     {
         Assert.True(e.Message.StartsWith("Error validating xml data against the schema"));
     }
 }
        public void test53()
        {
            var request = new registerTokenRequestType();
            request.orderId = "53";
            var echeck = new echeckForTokenType();
            echeck.accNum = "1099999998";
            echeck.routingNum = "114567895";
            request.echeckForToken = echeck;
            ;

            var response = litle.RegisterToken(request);
            Assert.AreEqual(methodOfPaymentTypeEnum.EC, response.type);
            Assert.AreEqual("998", response.eCheckAccountSuffix);
            Assert.AreEqual("801", response.response);
            Assert.AreEqual("Account number was successfully registered", response.message);
            Assert.AreEqual("111922223333000998", response.litleToken);
        }
        public void test54()
        {
            var request = new registerTokenRequestType();
            request.orderId = "54";
            var echeck = new echeckForTokenType();
            echeck.accNum = "1022222102";
            echeck.routingNum = "1145_7895";
            request.echeckForToken = echeck;
            ;

            var response = litle.RegisterToken(request);
            Assert.AreEqual("900", response.response);
            Assert.AreEqual("Invalid bank routing number", response.message);
        }