コード例 #1
0
        }         // FullInit

        public void FullInit(
            DateTime oDataAsOf,
            Configuration oCfg,
            Arguments oArgs,
            MetaData oMetaData,
            IEnumerable <Payment> oPayments,
            OriginationTime oOriginationTime,
            AutoApprovalTurnover oTurnover,
            AvailableFunds oFunds,
            List <Name> oDirectorNames,
            IEnumerable <NameForComparison> oHmrcBusinessNames
            )
        {
            PartialInit(oDataAsOf, oCfg, oArgs, oMetaData, oPayments, oDirectorNames, oHmrcBusinessNames);

            SetSeniority(oOriginationTime.Seniority);
            SetAvailableFunds(oFunds.Available, oFunds.Reserved);
            SetTurnoverData(oTurnover);
        }         // FullInit
コード例 #2
0
        public void TestAutoApprovalTurnover()
        {
            var turnover = new AutoApprovalTurnover();

            this.m_oDB.ForEachResult <TurnoverDbRow>(
                row => turnover.Add(row),
                "GetCustomerTurnoverForAutoDecision",
                new QueryParameter("@IsForApprove", true),
                new QueryParameter("@CustomerID", 211),
                new QueryParameter("@Now", DateTime.UtcNow)
                );

            turnover.TurnoverType = AutomationCalculator.Common.TurnoverType.HMRC;
            turnover.Init();
            this.m_oLog.Info("HMRC turnover for year is {0}.", turnover[12]);

            turnover.TurnoverType = AutomationCalculator.Common.TurnoverType.Bank;
            turnover.Init();
            this.m_oLog.Info("Bank turnover for year is {0}.", turnover[12]);

            turnover.TurnoverType = AutomationCalculator.Common.TurnoverType.Online;
            turnover.Init();
            this.m_oLog.Info("Online turnover for year is {0}.", turnover[12]);
        }         // TestAutoApprovalTurnover
コード例 #3
0
        }         // SetSeniority

        public void SetTurnoverData(AutoApprovalTurnover oTurnover)
        {
            SetTurnover(3, oTurnover[3]);
            SetTurnover(12, oTurnover[12]);
        }         // SetTurnoverData