Exemplo n.º 1
0
 public override void Context()
 {
     _callCollection           = mock <ICallCollection>();
     _pendingSpecification     = mock <IPendingSpecification>();
     _callActions              = mock <ICallActions>();
     _callSpecificationFactory = mock <ICallSpecificationFactory>();
 }
Exemplo n.º 2
0
 public GetCallSpec(ICallStack callStack, IPendingSpecification pendingSpecification,
     ICallSpecificationFactory callSpecificationFactory, ICallActions callActions)
 {
     _callStack = callStack;
     _pendingSpecification = pendingSpecification;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions = callActions;
 }
Exemplo n.º 3
0
 public GetCallSpec(ICallCollection callCollection, IPendingSpecification pendingSpecification,
                    ICallSpecificationFactory callSpecificationFactory, ICallActions callActions)
 {
     _callCollection           = callCollection;
     _pendingSpecification     = pendingSpecification;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions = callActions;
 }
Exemplo n.º 4
0
 public GetCallSpec(ICallCollection callCollection, IPendingSpecification pendingSpecification,
     ICallSpecificationFactory callSpecificationFactory, ICallActions callActions)
 {
     _callCollection = callCollection;
     _pendingSpecification = pendingSpecification;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions = callActions;
 }
Exemplo n.º 5
0
 public GetCallSpec(ICallStack callStack, IPendingSpecification pendingSpecification,
                    ICallSpecificationFactory callSpecificationFactory, ICallActions callActions)
 {
     _callStack                = callStack;
     _pendingSpecification     = pendingSpecification;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions              = callActions;
 }
Exemplo n.º 6
0
 public override void Context()
 {
     _call            = mock <ICall>();
     _callSpec        = mock <ICallSpecification>();
     _callActions     = mock <ICallActions>();
     _pendingSpec     = mock <IPendingSpecification>();
     _callSpecFactory = mock <ICallSpecificationFactory>();
     _callSpecFactory.stub(x => x.CreateFrom(_call, MatchArgs.AsSpecifiedInCall)).Return(_callSpec);
 }
Exemplo n.º 7
0
 public ResultSetter(ICallStack callStack, IPendingSpecification pendingSpecification,
     ICallResults configuredResults, ICallSpecificationFactory callSpecificationFactory,
     ICallActions callActions)
 {
     _callStack = callStack;
     _pendingSpecification = pendingSpecification;
     _configuredResults = configuredResults;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions = callActions;
 }
Exemplo n.º 8
0
            public override void Context()
            {
                _callStack                = mock <ICallStack>();
                _pendingSpecification     = mock <IPendingSpecification>();
                _configuredResults        = mock <ICallResults>();
                _callActions              = mock <ICallActions>();
                _callSpecificationFactory = mock <ICallSpecificationFactory>();

                _returnValue = mock <IReturn>();
            }
        public ThreadLocalContext()
        {
            _lastCallRouter              = new RobustThreadLocal <ICallRouter>();
            _argumentSpecifications      = new RobustThreadLocal <IList <IArgumentSpecification> >(() => new List <IArgumentSpecification>());
            _getArgumentsForRaisingEvent = new RobustThreadLocal <Func <ICall, object[]> >();
            _currentQuery             = new RobustThreadLocal <IQuery>();
            _pendingSpecificationInfo = new RobustThreadLocal <PendingSpecificationInfo>();

            PendingSpecification = new PendingSpecificationWrapper(_pendingSpecificationInfo);
        }
Exemplo n.º 10
0
 public ResultSetter(ICallStack callStack, IPendingSpecification pendingSpecification,
                     ICallResults configuredResults, ICallSpecificationFactory callSpecificationFactory,
                     ICallActions callActions)
 {
     _callStack                = callStack;
     _pendingSpecification     = pendingSpecification;
     _configuredResults        = configuredResults;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions              = callActions;
 }
Exemplo n.º 11
0
        public ThreadLocalContext()
        {
            _lastCallRouter              = new RobustThreadLocal <ICallRouter?>();
            _argumentSpecifications      = new RobustThreadLocal <IList <IArgumentSpecification> >(() => new List <IArgumentSpecification>());
            _getArgumentsForRaisingEvent = new RobustThreadLocal <Func <ICall, object?[]>?>();
            _currentQuery             = new RobustThreadLocal <IQuery?>();
            _pendingSpecificationInfo = new RobustThreadLocal <PendingSpecInfoData>();
            _nextRouteFactory         = new RobustThreadLocal <Tuple <ICallRouter, Func <ISubstituteState, IRoute> >?>();

            PendingSpecification = new PendingSpecificationWrapper(_pendingSpecificationInfo);
        }
Exemplo n.º 12
0
 public TrackLastCallHandler(IPendingSpecification pendingSpecification)
 {
     _pendingSpecification = pendingSpecification;
 }
 public RecordCallSpecificationHandler(IPendingSpecification pendingCallSpecification, ICallSpecificationFactory callSpecificationFactory, ICallActions callActions)
 {
     _pendingCallSpecification = pendingCallSpecification;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions = callActions;
 }
 public ClearUnusedCallSpecHandler(IPendingSpecification pendingSpecification)
 {
     _pendingSpecification = pendingSpecification;
 }
 public ClearUnusedCallSpecHandler(IPendingSpecification pendingSpecification)
 {
     _pendingSpecification = pendingSpecification;
 }
 public RecordCallSpecificationHandler(IPendingSpecification pendingCallSpecification, ICallSpecificationFactory callSpecificationFactory, ICallActions callActions)
 {
     _pendingCallSpecification = pendingCallSpecification;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions = callActions;
 }
Exemplo n.º 17
0
 public TrackLastCallHandler(IPendingSpecification pendingSpecification)
 {
     _pendingSpecification = pendingSpecification;
 }
Exemplo n.º 18
0
 public DiagnosticsPendingSpecification(IPendingSpecification impl, DiagContextInternal ctx)
 {
     _impl = impl;
     _ctx  = ctx;
 }