//------------------------------------------------------------------------- public virtual void test_builder_notEnoughData() { assertThrowsIllegalArg(() => FixedIborSwapTemplate.builder().build()); }
/// <summary> /// Creates a template based on the specified period, tenor and convention. /// <para> /// The period from the spot date to the start date is specified. /// /// </para> /// </summary> /// <param name="periodToStart"> the period between the spot date and the start date </param> /// <param name="tenor"> the tenor of the swap </param> /// <param name="convention"> the market convention </param> /// <returns> the template </returns> public static FixedIborSwapTemplate of(Period periodToStart, Tenor tenor, FixedIborSwapConvention convention) { return(FixedIborSwapTemplate.builder().periodToStart(periodToStart).tenor(tenor).convention(convention).build()); }