Exemple #1
0
        /// <summary>
        /// Constructor get db, log customer id and rejection configuration variables
        /// </summary>
        public RejectionAgent(
            AConnection oDB,
            ASafeLog oLog,
            int nCustomerID,
            long?cashRequestID,
            long?nlCashRequestID,
            RejectionConfigs configs = null
            )
        {
            this.customerId = nCustomerID;

            this.log = oLog;
            this.db  = oDB;

            this.dbHelper = new DbHelper(oDB, oLog);

            this.configs = configs ?? this.dbHelper.GetRejectionConfigs();

            Trail = new RejectionTrail(nCustomerID, cashRequestID, nlCashRequestID, oLog);
        }         // constructor
Exemple #2
0
        }         // constructor

        public virtual Agent Init()
        {
            Trail = new RejectionTrail(
                Args.CustomerID,
                Args.CashRequestID,
                Args.NLCashRequestID,
                Log,
                CurrentValues.Instance.AutomationExplanationMailReciever,
                CurrentValues.Instance.MailSenderEmail,
                CurrentValues.Instance.MailSenderName
                );
            Trail.SetTag(this.tag);

            Now             = DateTime.UtcNow;
            Cfg             = InitCfg();
            MetaData        = new MetaData();
            OriginationTime = new OriginationTime(Log);
            UpdateErrors    = new List <MpError>();

            this.annualTurnover  = 0;
            this.quarterTurnover = 0;

            return(this);
        }         // Init
Exemple #3
0
 public Checker(RejectionTrail oTrail, ASafeLog oLog)
 {
     Trail = oTrail;
     Log   = oLog.Safe();
 }         // constructor