Example #1
0
 public AndSpec(Spec x, Spec y)
 {
     this.x = x;
     this.y = y;
 }
Example #2
0
 public IList SelectBy(Spec spec)
 {
     IList foundProducts = new ArrayList();
        			IEnumerator products = repository.GetEnumerator();
     while (products.MoveNext())
     {
         Product product = (Product)products.Current;
         if (spec.isSatisfiedBy(product))
             foundProducts.Add(product);
     }
     return foundProducts;
 }
Example #3
0
 public NotSpec(Spec x)
 {
     this.x = x;
 }
Example #4
0
 public NotSpec(Spec x)
 {
     this.x = x;
 }
Example #5
0
 public AndSpec(Spec x, Spec y)
 {
     this.x = x;
     this.y = y;
 }