C# Class Machine.Specifications.Factories.BehaviorFactory

Show file Open project: machine/machine.specifications Class Usage Examples

Public Methods

Method Description
BehaviorFactory ( ) : System
CreateBehaviorFrom ( FieldInfo behaviorField, Context context ) : Machine.Specifications.Model.Behavior

Private Methods

Method Description
CreateBehaviorSpecifications ( IEnumerable itFieldInfos, Machine.Specifications.Model.Behavior behavior ) : void
EnsureAllBehaviorFieldsAreInContext ( Type behaviorType, Context context ) : void
EnsureBehaviorDoesNotHaveFrameworkFieldsExceptIt ( Type behaviorType ) : void
EnsureBehaviorHasBehaviorsAttribute ( Type behaviorType ) : void
EnsureContextFieldExists ( Context context, FieldInfo contextField, FieldInfo requiredField, Type behaviorType ) : void
EnsureContextFieldIsCompatibleType ( Context context, FieldInfo contextField, FieldInfo requiredField, Type behaviorType ) : void

Method Details

BehaviorFactory() public method

public BehaviorFactory ( ) : System
return System

CreateBehaviorFrom() public method

public CreateBehaviorFrom ( FieldInfo behaviorField, Context context ) : Machine.Specifications.Model.Behavior
behaviorField System.Reflection.FieldInfo
context Machine.Specifications.Model.Context
return Machine.Specifications.Model.Behavior