示例#1
0
 public static void AcceptOffer(out Selling o, ref MembershipUser seller, ref MembershipUser buyer, out int history)
 {
     SelectOffer(out o, ref seller, ref buyer);
       int res = SellingFacade.AcceptOffer(ref o, buyer.UserId(), out history);
       Assert.AreEqual(res, 1);
       Assert.Greater(history, 0);
       Assert.AreEqual(o.TransactionPhase, TransactionPhase.Accept);
       Trace.WriteLine(o.ToXmlString());
 }
示例#2
0
 public static void ConfirmOffer(out Selling o, ref MembershipUser seller, ref MembershipUser buyer)
 {
     int history;
       AcceptOffer(out o, ref seller, ref buyer, out history);
       int res = SellingFacade.ConfirmOffer(ref o, out history);
       Assert.AreEqual(res, 1);
       Assert.Greater(history, 0);
       Assert.AreEqual(o.TransactionPhase, TransactionPhase.Submit);
       Trace.WriteLine(o.ToXmlString());
 }
示例#3
0
 public static void FinishOffer(out Selling o, ref MembershipUser seller, ref MembershipUser buyer, out int historyId)
 {
     ConfirmOffer(out o, ref seller, ref buyer);
       int res = SellingFacade.FinishOffer(ref o, out historyId);
       Assert.AreEqual(res, 1);
       Assert.Greater(historyId, 0);
       Assert.AreEqual(o.TransactionPhase, TransactionPhase.Finish);
       Trace.WriteLine(o.ToXmlString());
 }