C# Class FakeThat.Engine.Interceptor

Inheritance: Castle.DynamicProxy.IInterceptor
Show file Open project: eteeselink/fakethat

Public Methods

Method Description
ExpectSetter ( Delegate setterStub, CallHistoryBase callHistory ) : void
Intercept ( Castle invocation ) : void
Interceptor ( bool acceptUnstubbedCalls ) : System
RegisterOperation ( MethodInfo method, Delegate instead, CallHistoryBase stubbedOperation ) : void

Register instead to be executed when method is called. Uses MethodInfo.ToString(), which uniquely identifies any possible signature.

UnexpectSetter ( ) : void

Private Methods

Method Description
GetDefault ( Type type ) : object

Method Details

ExpectSetter() public method

public ExpectSetter ( Delegate setterStub, CallHistoryBase callHistory ) : void
setterStub System.Delegate
callHistory FakeThat.Calls.CallHistoryBase
return void

Intercept() public method

public Intercept ( Castle invocation ) : void
invocation Castle
return void

Interceptor() public method

public Interceptor ( bool acceptUnstubbedCalls ) : System
acceptUnstubbedCalls bool
return System

RegisterOperation() public method

Register instead to be executed when method is called. Uses MethodInfo.ToString(), which uniquely identifies any possible signature.
public RegisterOperation ( MethodInfo method, Delegate instead, CallHistoryBase stubbedOperation ) : void
method System.Reflection.MethodInfo
instead System.Delegate
stubbedOperation FakeThat.Calls.CallHistoryBase
return void

UnexpectSetter() public method

public UnexpectSetter ( ) : void
return void