예제 #1
0
        public void TestClose()
        {
            var notify = (Notify)_alipayGateway.BuildClose(new Auxiliary
            {
                OutTradeNo = _outTradeNo
            });

            Assert.IsTrue(notify.SubMessage.Contains("交易不存在"));
            Trace.WriteLine(Util.SerializeObject(notify));
        }
예제 #2
0
 public void TestClose()
 {
     Assert.Throws <GatewayException>(() =>
     {
         _alipayGateway.BuildClose(new Auxiliary
         {
             OutTradeNo = _outTradeNo
         });
     });
 }