Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Tranche" /> class.
 /// </summary>
 /// <param name="name">name.</param>
 /// <param name="draw">draw.</param>
 /// <param name="interest">interest.</param>
 public Tranche(string name = default(string), DrawRules draw = default(DrawRules), InterestRules interest = default(InterestRules))
 {
     this.Name     = name;
     this.Draw     = draw;
     this.Interest = interest;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Loan" /> class.
 /// </summary>
 /// <param name="name">name.</param>
 /// <param name="timeZoneId">timeZoneId.</param>
 /// <param name="institutions">institutions (required).</param>
 /// <param name="draw">draw.</param>
 /// <param name="interest">interest.</param>
 public Loan(string name = default(string), string timeZoneId = default(string), List <FacilityInstitutionDto> institutions = default(List <FacilityInstitutionDto>), DrawRules draw = default(DrawRules), InterestRules interest = default(InterestRules))
 {
     // to ensure "institutions" is required (not null)
     this.Institutions = institutions ?? throw new ArgumentNullException("institutions is a required property for Loan and cannot be null");;
     this.Name         = name;
     this.TimeZoneId   = timeZoneId;
     this.Draw         = draw;
     this.Interest     = interest;
 }