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 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);
        }
        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);
            Assert.AreEqual("Invalid bank routing number", response.Message);
        }
 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"));
     }
 }