TRS-ZS-574 交易确认书对接OA自动提交审批
This commit is contained in:
@@ -27,10 +27,10 @@ namespace YLErp.UnitTestProject.Modules.UnderlyingModule
|
||||
|
||||
// (5,10]年,应返回10年
|
||||
var code3 = "UNLIMITED_10Y";
|
||||
var maturity3 = new DateTime(2040, 1, 1);
|
||||
var maturity3 = new DateTime(2030, 8, 2);
|
||||
var underlying3 = CreateTestUnderlying(code3, null, maturity3);
|
||||
var valueDate3 = maturity3.AddYears(-7); // 剩余13年
|
||||
var valueDate3_2 = maturity3.AddYears(-10); // 剩余10年
|
||||
var valueDate3_2 = DateTime.Now.Date; // 剩余10年
|
||||
var result3 = UnderlyingHelper.GetApplicableMarginTerm(code3, valueDate3_2);
|
||||
Assert.AreEqual(ConsMarginTerm.TenYear, result3, "(5,10]年 应为10年");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user