예제 #1
0
        public void InvalidCreditCard()
        {
            UnityConfig.Inicializar();
            var paymentRequest = new PaymentRequest();

            paymentRequest.IdStore          = 1;
            paymentRequest.CreditCardBrand  = 1;
            paymentRequest.CreditCardNumber = "4111111111111111";
            paymentRequest.ExpMonth         = "10asd";
            paymentRequest.ExpYear          = "22";
            paymentRequest.SecurityCode     = "123";
            paymentRequest.HolderName       = "LUKE SKYWALKER";
            paymentRequest.IsTest           = true;

            var paymentService = AbstractUnityConfig.Resolve <IPaymentService>();
            var result         = paymentService.Payment(paymentRequest);

            Assert.IsTrue(!result.Success);
        }
예제 #2
0
 public BaseController()
 {
     UnityConfig.Inicializar();
 }