public ReturnAutoValue(AutoValueBehaviour autoValueBehaviour, IEnumerable <IAutoValueProvider> autoValueProviders, ICallResults callResults, ICallSpecificationFactory callSpecificationFactory) { _autoValueProviders = autoValueProviders; _callResults = callResults; _callSpecificationFactory = callSpecificationFactory; _autoValueBehaviour = autoValueBehaviour; }
public ReturnAutoValue(AutoValueBehaviour autoValueBehaviour, IEnumerable<IAutoValueProvider> autoValueProviders, ICallResults callResults, ICallSpecificationFactory callSpecificationFactory) { _autoValueProviders = autoValueProviders; _callResults = callResults; _callSpecificationFactory = callSpecificationFactory; _autoValueBehaviour = autoValueBehaviour; }
public override void Context() { _configuredResults = mock <ICallResults>(); _callActions = mock <ICallActions>(); _getCallSpec = mock <IGetCallSpec>(); _compatibleReturnValue = mock <IReturn>(); _compatibleReturnValue.stub(x => x.CanBeAssignedTo(It.IsAny <Type>())).Return(true); }
public override void Context() { _callStack = mock <ICallStack>(); _callResults = mock <ICallResults>(); _routeArguments = new object[] { 2 }; _substituteState = mock <ISubstituteState>(); _substituteState.stub(x => x.FindInstanceFor(typeof(ICallStack), _routeArguments)).Return(_callStack); _substituteState.stub(x => x.FindInstanceFor(typeof(ICallResults), _routeArguments)).Return(_callResults); _substituteState.stub(x => x.FindInstanceFor(typeof(int), _routeArguments)).Return(_routeArguments[0]); }
public ResultSetter(ICallStack callStack, IPendingSpecification pendingSpecification, ICallResults configuredResults, ICallSpecificationFactory callSpecificationFactory, ICallActions callActions) { _callStack = callStack; _pendingSpecification = pendingSpecification; _configuredResults = configuredResults; _callSpecificationFactory = callSpecificationFactory; _callActions = callActions; }
public override void Context() { _callStack = mock <ICallStack>(); _pendingSpecification = mock <IPendingSpecification>(); _configuredResults = mock <ICallResults>(); _callActions = mock <ICallActions>(); _callSpecificationFactory = mock <ICallSpecificationFactory>(); _returnValue = mock <IReturn>(); }
public override void Context() { base.Context(); _call = mock <ICall>(); _call.stub(x => x.GetReturnType()).Return(_type); _callResults = mock <ICallResults>(); _callSpecification = mock <ICallSpecification>(); _callSpecificationFactory = mock <ICallSpecificationFactory>(); _callSpecificationFactory.stub(x => x.CreateFrom(_call, MatchArgs.AsSpecifiedInCall)).Return(_callSpecification); _firstAutoValueProvider = mock <IAutoValueProvider>(); _secondAutoValueProvider = mock <IAutoValueProvider>(); }
public ReturnConfiguredResultHandler(ICallResults callResults) { _callResults = callResults; }
public ConfigureCall(ICallResults configuredResults, ICallActions callActions, IGetCallSpec getCallSpec) { _configuredResults = configuredResults; _callActions = callActions; _getCallSpec = getCallSpec; }
public ReturnDefaultResultHandler(ICallResults callResults) { _callResults = callResults; }
public CheckReceivedCallHandler(ICallStack callStack, ICallResults configuredResults, ICallSpecificationFactory callSpecificationFactory) { _callStack = callStack; _configuredResults = configuredResults; _callSpecificationFactory = callSpecificationFactory; }
public ResultSetter(ICallStack callStack, ICallResults configuredResults, ICallSpecificationFactory callSpecificationFactory) { _callStack = callStack; _configuredResults = configuredResults; _callSpecificationFactory = callSpecificationFactory; }
public SampleHandler(ICallStack callStack, ICallResults results, int fromRouteArgument) { CallStack = callStack; CallResults = results; FromRouteArgument = fromRouteArgument; }
public static bool CallResults_HasCallResultFor(ICallResults callResults, ICall call) => HasCallResultForResolver.Invoke(callResults, call);
public override void Context() { _call = mock <ICall>(); _callResults = mock <ICallResults>(); }