} // constructor public virtual Agent Init() { Now = DateTime.UtcNow; MetaData = new MetaData(); LatePayments = new List <Payment>(); NewMarketplaces = new List <Marketplace>(); ApprovedAmount = 0; Trail = new ReapprovalTrail( Args.CustomerID, Args.CashRequestID, Args.NLCashRequestID, Log, CurrentValues.Instance.AutomationExplanationMailReciever, CurrentValues.Instance.MailSenderEmail, CurrentValues.Instance.MailSenderName ); Trail.SetTag(this.tag); Funds = new AvailableFunds(); Cfg = InitCfg(); return(this); } // Init
public Agent( AConnection oDB, ASafeLog oLog, int customerId, long?cashRequestID, long?nlCashRequestID, DateTime?dataAsOf = null ) { this.m_oDB = oDB; this.m_oLog = oLog.Safe(); this.CustomerId = customerId; this.Now = dataAsOf ?? DateTime.UtcNow; Trail = new ReapprovalTrail(customerId, cashRequestID, nlCashRequestID, this.m_oLog); Result = new ReApprovalResult(false, 0); } // constructor