Example #1
0
 public bool DoAgreement()
 {
     if (buyer.GetWallet().CanPay(price) && desire.Satisfy(seller.GetStorage()))
     {
         buyer.GetWallet().Pay(price, seller.GetWallet());
         buyer.Satisfy(desire.GetPositiveImpact());
         return(true);
     }
     else
     {
         return(false);
     }
 }