C# Class Moq.FromInstance.MoqFromInstanceMockingEngineTemplate

Moq specific IFromInstanceMockingEngineTemplate, which adds support for Moq to FromInstanceMockingEngine.
Inheritance: IFromInstanceMockingEngineTemplate
Afficher le fichier Open project: SkyKick/RhinoMoq.FromInstance

Méthodes publiques

Méthode Description
BuildReturnsMethod ( Type mockTargetType, Type mockedMethodReturnType, object mock, object instance ) : MethodInfo
BuildSetupMethodFunctionType ( Type mockTargetType, Type mockedMethodReturnType ) : Type
ExecuteSetupMethod ( Type mockTargetType, Type mockedMethodReturnType, object mock, object setupExpression ) : object

Method Details

BuildReturnsMethod() public méthode

public BuildReturnsMethod ( Type mockTargetType, Type mockedMethodReturnType, object mock, object instance ) : MethodInfo
mockTargetType System.Type
mockedMethodReturnType System.Type
mock object
instance object
Résultat System.Reflection.MethodInfo

BuildSetupMethodFunctionType() public méthode

public BuildSetupMethodFunctionType ( Type mockTargetType, Type mockedMethodReturnType ) : Type
mockTargetType System.Type
mockedMethodReturnType System.Type
Résultat System.Type

ExecuteSetupMethod() public méthode

public ExecuteSetupMethod ( Type mockTargetType, Type mockedMethodReturnType, object mock, object setupExpression ) : object
mockTargetType System.Type
mockedMethodReturnType System.Type
mock object
setupExpression object
Résultat object