Example #1
0
        public static void Define(Action <IHolidayConfigurator> configuration)
        {
            HolidayConfigurator cfg = new HolidayConfigurator();

            configuration(cfg);
            foreach (var spec in cfg.DateSpecifications)
            {
                _dateSpecifications.Add(spec);
            }
        }
Example #2
0
 public static void Define(Action<IHolidayConfigurator> configuration)
 {
     HolidayConfigurator cfg = new HolidayConfigurator();
     configuration(cfg);
     foreach (var spec in cfg.DateSpecifications)
     {
         _dateSpecifications.Add(spec);
     }
 }