예제 #1
0
        private static DateSpecification IsMonth(string description, Func <DateTime, bool> monthSpec, Action <DaySpecs> daySpecs)
        {
            DateSpecification dc = new DateSpecification(description, monthSpec);
            var spec             = new DaySpecs();

            daySpecs(spec);

            spec.Configure(dc);

            return(dc);
        }
예제 #2
0
 public void AddHoliday(string name, DateSpecification check)
 {
     DateSpecifications.Add(check);
 }
예제 #3
0
 public void Configure(DateSpecification check)
 {
     check.AddChecks(_checks);
 }
예제 #4
0
        private static DateSpecification IsMonth(string description, Func<DateTime, bool> monthSpec, Action<DaySpecs> daySpecs)
        {
            DateSpecification dc = new DateSpecification(description, monthSpec);
            var spec = new DaySpecs();
            daySpecs(spec);

            spec.Configure(dc);

            return dc;
        }
예제 #5
0
 public void AddHoliday(string name, DateSpecification check)
 {
     DateSpecifications.Add(check);
 }
예제 #6
0
 public void Configure(DateSpecification check)
 {
     check.AddChecks(_checks);
 }