/// <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
} // 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
public Checker(RejectionTrail oTrail, ASafeLog oLog) { Trail = oTrail; Log = oLog.Safe(); } // constructor