Example #1
0
 private void CreateBehaviorSpecifications(IEnumerable <FieldInfo> fieldInfos, FieldInfo behaviorField, Behavior behavior)
 {
     foreach (var fieldInfo in fieldInfos)
     {
         var specification = specificationFactory.CreateSpecificationFromBehavior(behavior, behaviorField, fieldInfo);
         behavior.AddSpecification(specification);
     }
 }
 void CreateBehaviorSpecifications(IEnumerable <FieldInfo> itFieldInfos,
                                   Behavior behavior)
 {
     foreach (var itFieldInfo in itFieldInfos)
     {
         var specification = _specificationFactory.CreateSpecificationFromBehavior(behavior,
                                                                                   itFieldInfo);
         behavior.AddSpecification(specification);
     }
 }