public CheckDidNotReceiveCallHandler(IReceivedCalls receivedCalls, ICallSpecificationFactory callSpecificationFactory, ICallReceivedExceptionThrower exceptionThrower, MatchArgs matchArgs) { _receivedCalls = receivedCalls; _callSpecificationFactory = callSpecificationFactory; _exceptionThrower = exceptionThrower; _matchArgs = matchArgs; }
public CheckReceivedCallsHandler(IReceivedCalls receivedCalls, ICallSpecificationFactory callSpecificationFactory, IReceivedCallsExceptionThrower exceptionThrower, MatchArgs matchArgs, Quantity requiredQuantity) { _receivedCalls = receivedCalls; _callSpecificationFactory = callSpecificationFactory; _exceptionThrower = exceptionThrower; _matchArgs = matchArgs; _requiredQuantity = requiredQuantity; }
public override void Context() { _context = mock <ISubstitutionContext>(); _call = mock <ICall>(); _receivedCalls = mock <IReceivedCalls>(); _resultSetter = mock <IResultSetter>(); _routeFactory = mock <IRouteFactory>(); }
public CallRouter(ISubstitutionContext context, IReceivedCalls receivedCalls, IResultSetter resultSetter, IRouteFactory routeFactory) { _context = context; _receivedCalls = receivedCalls; _resultSetter = resultSetter; _routeFactory = routeFactory; UseDefaultRouteForNextCall(); }
public CallRouter(ISubstituteState substituteState, ISubstitutionContext context, IRouteFactory routeFactory) { _substituteState = substituteState; _context = context; _routeFactory = routeFactory; _receivedCalls = substituteState.ReceivedCalls; ConfigureCall = substituteState.ConfigureCall; UseDefaultRouteForNextCall(); }
public override void Context() { _context = mock <ISubstitutionContext>(); _receivedCalls = mock <IReceivedCalls>(); _call = mock <ICall>(); _callSpecFromCall = mock <ICallSpecification>(); _callSpecificationFactory = mock <ICallSpecificationFactory>(); _exceptionThrower = new FakeExceptionThrower(); _callSpecFromCall.stub(x => x.IsSatisfiedBy(_call)).Return(true); _callSpecificationFactory.stub(x => x.CreateFrom(_call, _argMatching)).Return(_callSpecFromCall); }
public override void Context() { _context = mock <ISubstitutionContext>(); _call = mock <ICall>(); _state = mock <ISubstituteState>(); _receivedCalls = mock <IReceivedCalls>(); ConfigureCall = mock <IConfigureCall>(); _routeFactory = mock <IRouteFactory>(); _state.stub(x => x.ReceivedCalls).Return(_receivedCalls); _state.stub(x => x.ConfigureCall).Return(ConfigureCall); var recordReplayRoute = CreateRouteThatReturns(_returnValueFromRecordReplayRoute); recordReplayRoute.stub(x => x.IsRecordReplayRoute).Return(true); _routeFactory.stub(x => x.RecordReplay(_state)).Return(recordReplayRoute); }