예제 #1
0
 public ReturnAutoValue(AutoValueBehaviour autoValueBehaviour, IEnumerable <IAutoValueProvider> autoValueProviders, ICallResults callResults, ICallSpecificationFactory callSpecificationFactory)
 {
     _autoValueProviders       = autoValueProviders;
     _callResults              = callResults;
     _callSpecificationFactory = callSpecificationFactory;
     _autoValueBehaviour       = autoValueBehaviour;
 }
예제 #2
0
 public ReturnAutoValue(AutoValueBehaviour autoValueBehaviour, IEnumerable<IAutoValueProvider> autoValueProviders, ICallResults callResults, ICallSpecificationFactory callSpecificationFactory)
 {
     _autoValueProviders = autoValueProviders;
     _callResults = callResults;
     _callSpecificationFactory = callSpecificationFactory;
     _autoValueBehaviour = autoValueBehaviour;
 }
예제 #3
0
            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);
            }
예제 #4
0
 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]);
 }
예제 #5
0
 public ResultSetter(ICallStack callStack, IPendingSpecification pendingSpecification,
     ICallResults configuredResults, ICallSpecificationFactory callSpecificationFactory,
     ICallActions callActions)
 {
     _callStack = callStack;
     _pendingSpecification = pendingSpecification;
     _configuredResults = configuredResults;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions = callActions;
 }
예제 #6
0
            public override void Context()
            {
                _callStack                = mock <ICallStack>();
                _pendingSpecification     = mock <IPendingSpecification>();
                _configuredResults        = mock <ICallResults>();
                _callActions              = mock <ICallActions>();
                _callSpecificationFactory = mock <ICallSpecificationFactory>();

                _returnValue = mock <IReturn>();
            }
예제 #7
0
 public ResultSetter(ICallStack callStack, IPendingSpecification pendingSpecification,
                     ICallResults configuredResults, ICallSpecificationFactory callSpecificationFactory,
                     ICallActions callActions)
 {
     _callStack                = callStack;
     _pendingSpecification     = pendingSpecification;
     _configuredResults        = configuredResults;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions              = callActions;
 }
예제 #8
0
 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>();
 }
예제 #9
0
 public ReturnConfiguredResultHandler(ICallResults callResults)
 {
     _callResults = callResults;
 }
예제 #10
0
 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;
 }
예제 #13
0
 public ConfigureCall(ICallResults configuredResults, ICallActions callActions, IGetCallSpec getCallSpec)
 {
     _configuredResults = configuredResults;
     _callActions       = callActions;
     _getCallSpec       = getCallSpec;
 }
예제 #14
0
 public ResultSetter(ICallStack callStack, ICallResults configuredResults, ICallSpecificationFactory callSpecificationFactory)
 {
     _callStack = callStack;
     _configuredResults = configuredResults;
     _callSpecificationFactory = callSpecificationFactory;
 }
 public ReturnConfiguredResultHandler(ICallResults callResults)
 {
     _callResults = callResults;
 }
예제 #16
0
 public SampleHandler(ICallStack callStack, ICallResults results, int fromRouteArgument)
 {
     CallStack         = callStack;
     CallResults       = results;
     FromRouteArgument = fromRouteArgument;
 }
예제 #17
0
 public static bool CallResults_HasCallResultFor(ICallResults callResults, ICall call) =>
 HasCallResultForResolver.Invoke(callResults, call);
예제 #18
0
 public override void Context()
 {
     _call        = mock <ICall>();
     _callResults = mock <ICallResults>();
 }