Пример #1
0
        public static void Define(Action <IHolidayConfigurator> configuration)
        {
            HolidayConfigurator cfg = new HolidayConfigurator();

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