C# Class NSubstitute.Core.CallRouter

Inheritance: ICallRouter
Mostrar archivo Open project: nsubstitute/NSubstitute

Public Methods

Method Description
CallRouter ( ISubstituteState substituteState, ISubstitutionContext context, IRouteFactory routeFactory ) : System
Clear ( ClearOptions options ) : void
IsLastCallInfoPresent ( ) : bool
LastCallShouldReturn ( IReturn returnValue, NSubstitute.Core.MatchArgs matchArgs ) : NSubstitute.Core.ConfiguredCall
ReceivedCalls ( ) : IEnumerable
RegisterCustomCallHandlerFactory ( CallHandlerFactory factory ) : void
Route ( ICall call ) : object
SetReturnForType ( Type type, IReturn returnValue ) : void
SetRoute ( IRoute>.Func getRoute ) : void

Private Methods

Method Description
IsSpecifyingACall ( ICall call ) : bool
UseDefaultRouteForNextCall ( ) : void
UseQueryRouteForNextCall ( ) : void
UseRecordCallSpecRouteForNextCall ( ) : void

Method Details

CallRouter() public method

public CallRouter ( ISubstituteState substituteState, ISubstitutionContext context, IRouteFactory routeFactory ) : System
substituteState ISubstituteState
context ISubstitutionContext
routeFactory IRouteFactory
return System

Clear() public method

public Clear ( ClearOptions options ) : void
options ClearOptions
return void

IsLastCallInfoPresent() public method

public IsLastCallInfoPresent ( ) : bool
return bool

LastCallShouldReturn() public method

public LastCallShouldReturn ( IReturn returnValue, NSubstitute.Core.MatchArgs matchArgs ) : NSubstitute.Core.ConfiguredCall
returnValue IReturn
matchArgs NSubstitute.Core.MatchArgs
return NSubstitute.Core.ConfiguredCall

ReceivedCalls() public method

public ReceivedCalls ( ) : IEnumerable
return IEnumerable

RegisterCustomCallHandlerFactory() public method

public RegisterCustomCallHandlerFactory ( CallHandlerFactory factory ) : void
factory CallHandlerFactory
return void

Route() public method

public Route ( ICall call ) : object
call ICall
return object

SetReturnForType() public method

public SetReturnForType ( Type type, IReturn returnValue ) : void
type Type
returnValue IReturn
return void

SetRoute() public method

public SetRoute ( IRoute>.Func getRoute ) : void
getRoute IRoute>.Func
return void