Ejemplo n.º 1
0
        public WeekendAdjustSchedule(ISchedule baseSchedule, WeekdayAdjustmentDirection saturdayAdjustment, WeekdayAdjustmentDirection sundayAdjustment)
        {
            if (baseSchedule == null)
            {
                throw new ArgumentNullException("baseSchedule");
            }

            this.BaseSchedule = baseSchedule;
            this.SaturdayAdjustment = saturdayAdjustment;
            this.SundayAdjustment = sundayAdjustment;
        }
Ejemplo n.º 2
0
 public WeekendAdjustSchedule(ISchedule baseSchedule, WeekdayAdjustmentDirection saturdayAdjustment, WeekdayAdjustmentDirection sundayAdjustment)
 {
     this.BaseSchedule       = baseSchedule ?? throw new ArgumentNullException(nameof(baseSchedule));
     this.SaturdayAdjustment = saturdayAdjustment;
     this.SundayAdjustment   = sundayAdjustment;
 }