public static IGetRule <ICompareValues> Create(
     IGetProperlyRule ruleForCollectionTypes,
     IGetProperlyRule ruleForReferenceTypes,
     IGetProperlyRule ruleForValuesTypes
     )
 {
     return(new CollectionTypeChained(ruleForCollectionTypes,
                                      new ReferenceTypeChained(ruleForReferenceTypes,
                                                               new StructTypeChained(ruleForValuesTypes,
                                                                                     new NotSatisfiedRule()))));
 }
Beispiel #2
0
 protected ChainedRule(IGetProperlyRule rule, IGetProperlyRule next)
 {
     Rule = rule;
     Next = next;
 }
Beispiel #3
0
 public ReferenceTypeChained(IGetProperlyRule rule, IGetRule <ICompareValues> next) : base(next)
 {
     Rule = rule;
 }
Beispiel #4
0
 public CollectionTypeChained(IGetProperlyRule rule, IGetProperlyRule next) : base(rule, next)
 {
 }
 public CollectionTypeChained(IGetProperlyRule rule, IGetRule <ICompareValues> next) : base(rule, next)
 {
     Rule = rule;
 }
 public ReferenceTypeChained(IGetProperlyRule rule, IGetProperlyRule next) : base(rule, next)
 {
 }
Beispiel #7
0
 public StructTypeChained(IGetProperlyRule rule, IGetProperlyRule next) : base(rule, next)
 {
 }
 public StructTypeChained(IGetProperlyRule rule, IGetRule <ICompareValues> next) : base(next)
 {
     Rule = rule;
 }