本文整理匯總了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);
}