public IEnumerable <ParkingSlot> Filter(IEnumerable <ParkingSlot> items, IParkingSlotCriteria <ParkingSlot> t) { foreach (var item in items) { if (t.IsCriteriaMet(item)) { yield return(item); } } }
public ConjunctionCriteria(IParkingSlotCriteria <T> first, IParkingSlotCriteria <T> second) { _first = first; _second = second; }