Esempio n. 1
0
        /// <summary>
        /// Creator: Jaeho Kim
        /// Created: 2020/04/14
        /// Approver: Ethan Holmes
        ///
        /// Fake Insert Transaction TYPE.
        /// </summary>
        ///
        /// <remarks>
        /// Updater: NA
        /// Updated: NA
        /// Update: NA
        /// </remarks>
        /// <param name="transactionType"></param>
        public int InsertTransactionType(TransactionType transactionType)
        {
            int result = 0;
            FakeTransactionAdminAccessor fakeTransactionAdminAccessor = new FakeTransactionAdminAccessor();
            List <TransactionType>       transactionTypes             = _transactionTypes;

            if (!transactionTypes.Contains(transactionType))
            {
                transactionTypes.Add(transactionType);
                result = 1;
            }
            return(result);
        }
Esempio n. 2
0
        /// <summary>
        /// Creator: Jaeho Kim
        /// Created: 2020/04/14
        /// Approver: Ethan Holmes
        ///
        /// Fake Insert Transaction STATUS.
        /// </summary>
        ///
        /// <remarks>
        /// Updater: NA
        /// Updated: NA
        /// Update: NA
        /// </remarks>
        /// <param name="transactionStatus"></param>
        public int InsertTransactionStatus(TransactionStatus transactionStatus)
        {
            int result = 0;
            FakeTransactionAdminAccessor fakeTransactionAdminAccessor = new FakeTransactionAdminAccessor();
            List <TransactionStatus>     transactionStatuses          = _transactionStatuses;

            if (!transactionStatuses.Contains(transactionStatus))
            {
                transactionStatuses.Add(transactionStatus);
                result = 1;
            }
            return(result);
        }