} // Execute private ActionResult HandleOnePendingInvestor(SafeReader sr, bool bRowSetStart) { int customerId = sr["CustomerID"]; long cashRequestID = sr["CashRequestID"]; Log.Info("Searching investor for customer {0} cash request {1}", customerId, cashRequestID); var aiar = new LoadApplicationInfo( customerId, cashRequestID, this.now ); aiar.Execute(); ApplyManualDecision applyManualDecision = new ApplyManualDecision(new DecisionModel { customerID = customerId, status = EZBob.DatabaseLib.Model.Database.CreditResultStatus.Approved, underwriterID = 1, attemptID = Guid.NewGuid().ToString("N"), cashRequestID = cashRequestID, cashRequestRowVersion = aiar.Result.CashRequestRowVersion, }); applyManualDecision.Execute(); return(ActionResult.Continue); } //HandleOnePendingInvestor
public void TestLoadApplicationInfo() { var stra = new LoadApplicationInfo(2357, 42825, DateTime.Now); stra.Execute(); Assert.IsNotNull(stra.Result); Assert.Greater(stra.Result.LoanTypes.Length, 0); Assert.Greater(stra.Result.FundingTypes.Count, 0); Assert.Greater(stra.Result.GradeRanges.Count, 0); Assert.Greater(stra.Result.AllLoanSources.Length, 0); Assert.Greater(stra.Result.Grades.Count, 0); Assert.Greater(stra.Result.SubGrades.Count, 0); Assert.Greater(stra.Result.ProductSubTypes.Count, 0); Assert.Greater(stra.Result.ProductTypes.Count, 0); Assert.Greater(stra.Result.Products.Count, 0); }
} //HandleOneExpired private void RejectCustomer(int customerID, long cashRequestID) { var aiar = new LoadApplicationInfo(customerID, cashRequestID, DateTime.UtcNow); aiar.Execute(); var stra = new ApplyManualDecision(new DecisionModel { customerID = customerID, status = EZBob.DatabaseLib.Model.Database.CreditResultStatus.Rejected, underwriterID = 1, attemptID = Guid.NewGuid().ToString("N"), cashRequestID = cashRequestID, cashRequestRowVersion = aiar.Result.CashRequestRowVersion, reason = "Open platform offer expired", }); stra.Execute(); } //RejectCustomer