C# Class Machine.Specifications.Factories.BehaviorFactory

Afficher le fichier Open project: machine/machine.specifications Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode 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 méthode

public BehaviorFactory ( ) : System
Résultat System

CreateBehaviorFrom() public méthode

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