示例#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));
        }
示例#2
0
 public void TestRefundQuery()
 {
     Assert.Throws <GatewayException>(() =>
     {
         _alipayGateway.BuildRefundQuery(new Auxiliary
         {
             OutTradeNo  = _outTradeNo,
             OutRefundNo = "123"
         });
     });
 }