Exemplo n.º 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);
        }
Exemplo n.º 2
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;
        }