Exemplo n.º 1
0
        public static LeaseNodeStruct CreateConfiguration(string id, string currency, string paymentFrequency, string businessDayConvention, string businessCentersAsString)
        {
            var node  = new LeaseNodeStruct();
            var lease = new Lease
            {
                businessDayAdjustments = BusinessDayAdjustmentsHelper.Create(businessDayConvention, businessCentersAsString),
                currency = new IdentifiedCurrency {
                    id = "PaymentCurrency", Value = currency
                },
                leaseType        = "Standard",
                leaseIdentifier  = id,
                paymentFrequency = PeriodHelper.Parse(paymentFrequency)
            };

            node.Lease = lease;
            return(node);
        }
Exemplo n.º 2
0
 public static Period FromYears(int years)
 {
     return(PeriodHelper.Parse(years + "Y"));
 }
Exemplo n.º 3
0
 public static Period FromMonths(int months)
 {
     return(PeriodHelper.Parse(months + "M"));
 }
Exemplo n.º 4
0
 public static Period FromWeeks(int weeks)
 {
     return(PeriodHelper.Parse(weeks + "W"));
 }
Exemplo n.º 5
0
 public static Period FromDays(int days)
 {
     return(PeriodHelper.Parse(days + "D"));
 }