コード例 #1
0
 public SetActionForCallHandler(ICallSpecificationFactory callSpecificationFactory, ICallActions callActions, Action<CallInfo> action, MatchArgs matchArgs)
 {
     _callSpecificationFactory = callSpecificationFactory;
     _callActions = callActions;
     _action = action;
     _matchArgs = matchArgs;
 }
コード例 #2
0
 public override void Context()
 {
     _callCollection           = mock <ICallCollection>();
     _pendingSpecification     = mock <IPendingSpecification>();
     _callActions              = mock <ICallActions>();
     _callSpecificationFactory = mock <ICallSpecificationFactory>();
 }
コード例 #3
0
 public SetActionForCallHandler(ICallSpecificationFactory callSpecificationFactory, ICallActions callActions, Action <CallInfo> action, MatchArgs matchArgs)
 {
     _callSpecificationFactory = callSpecificationFactory;
     _callActions = callActions;
     _action      = action;
     _matchArgs   = matchArgs;
 }
コード例 #4
0
 public GetCallSpec(ICallCollection callCollection, IPendingSpecification pendingSpecification,
     ICallSpecificationFactory callSpecificationFactory, ICallActions callActions)
 {
     _callCollection = callCollection;
     _pendingSpecification = pendingSpecification;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions = callActions;
 }
コード例 #5
0
 public GetCallSpec(ICallStack callStack, IPendingSpecification pendingSpecification,
     ICallSpecificationFactory callSpecificationFactory, ICallActions callActions)
 {
     _callStack = callStack;
     _pendingSpecification = pendingSpecification;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions = callActions;
 }
コード例 #6
0
ファイル: GetCallSpec.cs プロジェクト: ivandrofly/NSubstitute
 public GetCallSpec(ICallCollection callCollection, IPendingSpecification pendingSpecification,
                    ICallSpecificationFactory callSpecificationFactory, ICallActions callActions)
 {
     _callCollection           = callCollection;
     _pendingSpecification     = pendingSpecification;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions = callActions;
 }
コード例 #7
0
 public GetCallSpec(ICallStack callStack, IPendingSpecification pendingSpecification,
                    ICallSpecificationFactory callSpecificationFactory, ICallActions callActions)
 {
     _callStack                = callStack;
     _pendingSpecification     = pendingSpecification;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions              = callActions;
 }
コード例 #8
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);
            }
コード例 #9
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);
 }
コード例 #10
0
 public ResultSetter(ICallStack callStack, IPendingSpecification pendingSpecification,
                     ICallResults configuredResults, ICallSpecificationFactory callSpecificationFactory,
                     ICallActions callActions)
 {
     _callStack                = callStack;
     _pendingSpecification     = pendingSpecification;
     _configuredResults        = configuredResults;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions              = callActions;
 }
コード例 #11
0
ファイル: ResultSetter.cs プロジェクト: robdmoore/NSubstitute
 public ResultSetter(ICallStack callStack, IPendingSpecification pendingSpecification,
     ICallResults configuredResults, ICallSpecificationFactory callSpecificationFactory,
     ICallActions callActions)
 {
     _callStack = callStack;
     _pendingSpecification = pendingSpecification;
     _configuredResults = configuredResults;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions = callActions;
 }
コード例 #12
0
            public override void Context()
            {
                _callStack                = mock <ICallStack>();
                _pendingSpecification     = mock <IPendingSpecification>();
                _configuredResults        = mock <ICallResults>();
                _callActions              = mock <ICallActions>();
                _callSpecificationFactory = mock <ICallSpecificationFactory>();

                _returnValue = mock <IReturn>();
            }
コード例 #13
0
            public override void Context()
            {
                _call        = mock <ICall>();
                _action      = args => { };
                _callActions = mock <ICallActions>();
                _callSpec    = mock <ICallSpecification>();
                _matchArgs   = MatchArgs.AsSpecifiedInCall;

                _callSpecificationFactory = mock <ICallSpecificationFactory>();
                _callSpecificationFactory.stub(x => x.CreateFrom(_call, _matchArgs)).Return(_callSpec);
            }
コード例 #14
0
 public RecordCallSpecificationHandler(IPendingSpecification pendingCallSpecification, ICallSpecificationFactory callSpecificationFactory, ICallActions callActions)
 {
     _pendingCallSpecification = pendingCallSpecification;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions = callActions;
 }
コード例 #15
0
 public SetActionForCallHandler(ICallSpecificationFactory callSpecificationFactory, ICallActions callActions, Action<CallInfo> action)
 {
     _callSpecificationFactory = callSpecificationFactory;
     _callActions = callActions;
     _action = action;
 }
コード例 #16
0
 public GetCallSpec(ICallCollection receivedCalls, ICallSpecificationFactory callSpecificationFactory, ICallActions callActions)
 {
     _receivedCalls            = receivedCalls;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions = callActions;
 }
コード例 #17
0
 public DoActionsCallHandler(ICallActions callActions)
 {
     _callActions = callActions;
 }
コード例 #18
0
 public DoActionsCallHandler(ICallActions callActions)
 {
     _callActions = callActions;
 }
コード例 #19
0
 public ConfigureCall(ICallResults configuredResults, ICallActions callActions, IGetCallSpec getCallSpec)
 {
     _configuredResults = configuredResults;
     _callActions = callActions;
     _getCallSpec = getCallSpec;
 }
コード例 #20
0
 public RecordCallSpecificationHandler(IPendingSpecification pendingCallSpecification, ICallSpecificationFactory callSpecificationFactory, ICallActions callActions)
 {
     _pendingCallSpecification = pendingCallSpecification;
     _callSpecificationFactory = callSpecificationFactory;
     _callActions = callActions;
 }
コード例 #21
0
 public DoActionsCallHandler(ICallActions callActions, ICallInfoFactory callInfoFactory)
 {
     _callActions = callActions;
     _callInfoFactory = callInfoFactory;
 }
コード例 #22
0
 public override void Context()
 {
     _call        = mock <ICall>();
     _callActions = mock <ICallActions>();
 }
コード例 #23
0
 public ConfigureCall(ICallResults configuredResults, ICallActions callActions, IGetCallSpec getCallSpec)
 {
     _configuredResults = configuredResults;
     _callActions       = callActions;
     _getCallSpec       = getCallSpec;
 }