コード例 #1
0
ファイル: AlipayGatewayTest.cs プロジェクト: mtfgqd/ICanPay
 public void TestBarcodePay()
 {
     _order.OutTradeNo              = _outTradeNo;
     _alipayGateway.Order           = _order;
     _alipayGateway.PaymentSucceed += _alipayGateway_PaymentSucceed;
     _alipayGateway.PaymentFailed  += _alipayGateway_PaymentFailed;
     _alipayGateway.BuildBarcodePayment();
 }
コード例 #2
0
 public void TestBarcodePay()
 {
     Assert.Throws <GatewayException>(() =>
     {
         _order.OutTradeNo              = _outTradeNo;
         _alipayGateway.Order           = _order;
         _alipayGateway.PaymentSucceed += _alipayGateway_PaymentSucceed;
         _alipayGateway.PaymentFailed  += _alipayGateway_PaymentFailed;
         _alipayGateway.BuildBarcodePayment();
     });
 }