예제 #1
0
 internal PredicateList(IEnumerable <TypeDefinition> classes,
                        Func <IEnumerable <TypeDefinition>, IEnumerable <TypeDefinition> > filter)
 {
     _types    = classes;
     _sequence = new FunctionSequence();
     if (filter != null)
     {
         _sequence.Add(filter);
     }
 }
예제 #2
0
        public ConditionList Should(Filter filter = null)
        {
            var inputs           = _sequence.Execute(_types);
            var functionSequence = new FunctionSequence();

            if (filter != null)
            {
                functionSequence.Add(filter);
            }
            return(new ConditionList(inputs, true, functionSequence));
        }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConditionList"/> class.
 /// </summary>
 internal ConditionList(IEnumerable <TypeDefinition> classes, bool should, FunctionSequence sequence)
 {
     _types    = classes.ToList();
     _sequence = sequence;
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Predicates"/> class.
 /// </summary>
 internal Predicates(IEnumerable <TypeDefinition> types, FunctionSequence calls)
 {
     _types    = types.ToList();
     _sequence = calls;
 }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Predicates"/> class.
 /// </summary>
 internal Predicates(IEnumerable <TypeDefinition> types)
 {
     _types    = types.ToList();
     _sequence = new FunctionSequence();
 }
예제 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Conditions"/> class.
 /// </summary>
 internal Conditions(IEnumerable <TypeDefinition> types, bool should, FunctionSequence calls)
 {
     _types    = types.ToList();
     _should   = should;
     _sequence = calls;
 }
예제 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Conditions"/> class.
 /// </summary>
 internal Conditions(IEnumerable <TypeDefinition> types, bool should)
 {
     _types    = types.ToList();
     _should   = should;
     _sequence = new FunctionSequence();
 }
예제 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PredicateList"/> class.
 /// </summary>
 internal PredicateList(IEnumerable <TypeDefinition> classes, FunctionSequence sequence)
 {
     _types    = classes;
     _sequence = sequence;
 }