public CompositeSpecification <T> Or(CompositeSpecification <T> specification)
 {
     return(new OrSpecification <T>(this, specification));
 }
 public CompositeSpecification <T> And(CompositeSpecification <T> specification)
 {
     return(new AndSpecification <T>(this, specification));
 }
Пример #3
0
 public OrSpecification(CompositeSpecification <T> firstSpecification, CompositeSpecification <T> secondSpecification)
 {
     _firstSpecification  = firstSpecification;
     _secondSpecification = secondSpecification;
 }
Пример #4
0
 public NotSpecification(CompositeSpecification <T> specification)
 {
     _specification = specification;
 }
Пример #5
0
 public AndSpecification(CompositeSpecification <T> firstSpecification, CompositeSpecification <T> secondSpecification)
 {
     _firstCandidate      = firstSpecification;
     _secondSpecification = secondSpecification;
 }