当前位置: 首页>>代码示例>>C#>>正文


C# Loan.AddInstallment方法代码示例

本文整理汇总了C#中OpenCBS.CoreDomain.Contracts.Loans.Loan.AddInstallment方法的典型用法代码示例。如果您正苦于以下问题:C# Loan.AddInstallment方法的具体用法?C# Loan.AddInstallment怎么用?C# Loan.AddInstallment使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在OpenCBS.CoreDomain.Contracts.Loans.Loan的用法示例。


在下文中一共展示了Loan.AddInstallment方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: TestAddInstallmentAndGetInstallment

 public void TestAddInstallmentAndGetInstallment()
 {
     Loan newContract = new Loan(new User(), ApplicationSettings.GetInstance(""), NonWorkingDateSingleton.GetInstance(""), ProvisionTable.GetInstance(new User()), ChartOfAccounts.GetInstance(new User())); new Loan(new User(), ApplicationSettings.GetInstance(""), NonWorkingDateSingleton.GetInstance(""), ProvisionTable.GetInstance(new User()), ChartOfAccounts.GetInstance(new User()));
     Installment i = new Installment {PaidCapital = 100};
     newContract.AddInstallment(i);
     Assert.AreEqual(100m,newContract.GetInstallment(0).PaidCapital.Value);
 }
开发者ID:BillTheBest,项目名称:opencbs,代码行数:7,代码来源:TestCreditContract.cs

示例2: SetUp

        public void SetUp()
        {
            addDataForTesting.DeleteInstallments();
            addDataForTesting.DeleteCreditContract();
            addDataForTesting.DeletedProject();
            addDataForTesting.DeleteInstallmentTypes();
            addDataForTesting.DeleteTiers();
            addDataForTesting.DeleteAllUser();
            addDataForTesting.AddGenericFundingLine();
            collateral = addDataForTesting.AddCollateral();

            biWeekly = addDataForTesting.AddBiWeeklyInstallmentType();
            package.Id = addDataForTesting.AddGenericPackage();
            package.Name = "Package";
            user.Id = addDataForTesting.AddUserWithIntermediaryAttributs();
            //addDataForTesting.AddGenericFundingLine();
            tiers.Id = addDataForTesting.AddGenericTiersIntoDatabase(OClientTypes.Group);
            tiers.LoanCycle = 1;

            _project = new Project();
            _project.ProjectStatus = OProjectStatus.Refused;
            _project.Name = "NotSet";
            _project.Code = "NotSet";
            _project.Aim = "NotSet";

            _project.BeginDate = TimeProvider.Today;
            _project.Id = projectManager.Add(_project, tiers.Id, null);

            //fundingLine = new FundingLine("AFD130",false);

            credit = new Loan(new User(), ApplicationSettings.GetInstance(""), NonWorkingDateSingleton.GetInstance(""), ProvisioningTable.GetInstance(new User()));
            credit.LoanOfficer = user;

            credit.BranchCode = "DU";
            credit.CreationDate = DateTime.Today.AddDays(-1);
            credit.StartDate = DateTime.Today;
            credit.CloseDate = DateTime.Today.AddDays(1);
            credit.Closed = true;
            credit.Rural = true;
            credit.Product = package;
            credit.Amount = 1000m;
            credit.InterestRate = 3;
            credit.InstallmentType = biWeekly;
            credit.NbOfInstallments = 2;
            credit.NonRepaymentPenalties.InitialAmount = 2.5;
            credit.AnticipatedRepaymentPenalties = 1.2;
            credit.Disbursed = false;
            credit.LoanOfficer = user;
            credit.FundingLine = new FundingLine { Name = "AFD130" };
            credit.EntryFees = 2.05;
            credit.WriteOff = false;
            credit.Rescheduled = false;
            credit.BadLoan = false;

            credit.AddInstallment(installment1);
            credit.AddInstallment(installment2);
        }
开发者ID:aelhadi,项目名称:opencbs,代码行数:57,代码来源:TestCreditContractManagement.cs


注:本文中的OpenCBS.CoreDomain.Contracts.Loans.Loan.AddInstallment方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。