Exemplo n.º 1
0
 public void TestBarcodePay()
 {
     _order.OutTradeNo              = _outTradeNo;
     _alipayGateway.Order           = _order;
     _alipayGateway.PaymentSucceed += _alipayGateway_PaymentSucceed;
     _alipayGateway.PaymentFailed  += _alipayGateway_PaymentFailed;
     _alipayGateway.BuildBarcodePayment();
 }
Exemplo n.º 2
0
 public void TestBarcodePay()
 {
     Assert.Throws <GatewayException>(() =>
     {
         _order.OutTradeNo              = _outTradeNo;
         _alipayGateway.Order           = _order;
         _alipayGateway.PaymentSucceed += _alipayGateway_PaymentSucceed;
         _alipayGateway.PaymentFailed  += _alipayGateway_PaymentFailed;
         _alipayGateway.BuildBarcodePayment();
     });
 }