本文整理汇总了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);
}
示例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);
}