public WeekendAdjustSchedule(ISchedule baseSchedule, WeekdayAdjustmentDirection saturdayAdjustment, WeekdayAdjustmentDirection sundayAdjustment) { if (baseSchedule == null) { throw new ArgumentNullException("baseSchedule"); } this.BaseSchedule = baseSchedule; this.SaturdayAdjustment = saturdayAdjustment; this.SundayAdjustment = sundayAdjustment; }
public WeekendAdjustSchedule(ISchedule baseSchedule, WeekdayAdjustmentDirection saturdayAdjustment, WeekdayAdjustmentDirection sundayAdjustment) { this.BaseSchedule = baseSchedule ?? throw new ArgumentNullException(nameof(baseSchedule)); this.SaturdayAdjustment = saturdayAdjustment; this.SundayAdjustment = sundayAdjustment; }