C# Class NSubstitute.Core.CallRouter

Inheritance: ICallRouter
Afficher le fichier Open project: nsubstitute/NSubstitute

Méthodes publiques

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

Méthode Description
IsSpecifyingACall ( ICall call ) : bool
UseDefaultRouteForNextCall ( ) : void
UseQueryRouteForNextCall ( ) : void
UseRecordCallSpecRouteForNextCall ( ) : void

Method Details

CallRouter() public méthode

public CallRouter ( ISubstituteState substituteState, ISubstitutionContext context, IRouteFactory routeFactory ) : System
substituteState ISubstituteState
context ISubstitutionContext
routeFactory IRouteFactory
Résultat System

Clear() public méthode

public Clear ( ClearOptions options ) : void
options ClearOptions
Résultat void

IsLastCallInfoPresent() public méthode

public IsLastCallInfoPresent ( ) : bool
Résultat bool

LastCallShouldReturn() public méthode

public LastCallShouldReturn ( IReturn returnValue, NSubstitute.Core.MatchArgs matchArgs ) : NSubstitute.Core.ConfiguredCall
returnValue IReturn
matchArgs NSubstitute.Core.MatchArgs
Résultat NSubstitute.Core.ConfiguredCall

ReceivedCalls() public méthode

public ReceivedCalls ( ) : IEnumerable
Résultat IEnumerable

RegisterCustomCallHandlerFactory() public méthode

public RegisterCustomCallHandlerFactory ( CallHandlerFactory factory ) : void
factory CallHandlerFactory
Résultat void

Route() public méthode

public Route ( ICall call ) : object
call ICall
Résultat object

SetReturnForType() public méthode

public SetReturnForType ( Type type, IReturn returnValue ) : void
type Type
returnValue IReturn
Résultat void

SetRoute() public méthode

public SetRoute ( IRoute>.Func getRoute ) : void
getRoute IRoute>.Func
Résultat void