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