Ejemplo n.º 1
0
        public TransactionBdo CancelTransactionByUser(string paySystemUid)
        {
            Logger.InfoFormat("User is canceling transaction by payment system UID: `{0}", paySystemUid);
            _securityBll.ValidateUid(paySystemUid);

            var t = _transactionDal.GetTransactionByPaySystemUid(paySystemUid);

            if (t == null)
            {
                throw new TransactionDoesNotExist("Transaction was not found by payment system UID", paySystemUid);
            }

            SetTransactionStatusToCancelled(t);

            return(t);
        }
Ejemplo n.º 2
0
        public void Test_Uid_Is_Not_Empty()
        {
            string uid = "";

            _securityBll.ValidateUid(uid);
        }