Ejemplo n.º 1
0
        public void TestRefundQuery()
        {
            var notify = (Notify)_alipayGateway.BuildRefundQuery(new Auxiliary
            {
                OutTradeNo  = _outTradeNo,
                OutRefundNo = "123"
            });

            Assert.IsTrue(notify.SubMessage.Contains("交易不存在"));
            Trace.WriteLine(Util.SerializeObject(notify));
        }
Ejemplo n.º 2
0
 public void TestRefundQuery()
 {
     Assert.Throws <GatewayException>(() =>
     {
         _alipayGateway.BuildRefundQuery(new Auxiliary
         {
             OutTradeNo  = _outTradeNo,
             OutRefundNo = "123"
         });
     });
 }