Beispiel #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);
        }
 public static Period FromYears(int years)
 {
     return(PeriodHelper.Parse(years + "Y"));
 }
 public static Period FromMonths(int months)
 {
     return(PeriodHelper.Parse(months + "M"));
 }
 public static Period FromWeeks(int weeks)
 {
     return(PeriodHelper.Parse(weeks + "W"));
 }
 public static Period FromDays(int days)
 {
     return(PeriodHelper.Parse(days + "D"));
 }