public void LastDayOfMonthAddsLink() { DayOfMonthFieldDefinition fieldDefinition = new DayOfMonthFieldDefinition(); VerifyLinkIsExpected(TestObject.AddLastDayOfMonth(fieldDefinition), typeof(LastDayOfMonthLink)); }
public static IRangeFactoryLink AddLastDayOfMonth(this IRangeFactoryLink rangeLink, DayOfMonthFieldDefinition fieldDefinition) => new LastDayOfMonthLink(fieldDefinition, rangeLink);
public void NearestWeekdayAddsLink() { DayOfMonthFieldDefinition fieldDefinition = new DayOfMonthFieldDefinition(); VerifyLinkIsExpected(TestObject.AddNearestWeekday(fieldDefinition), typeof(NearestWeekdayLink)); }
public static IRangeFactoryLink AddNearestWeekday(this IRangeFactoryLink rangeLink, DayOfMonthFieldDefinition fieldDefinition) => new NearestWeekdayLink(fieldDefinition, rangeLink);