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