public void Setup()
 {
     responder = mockResponder.Object;
 }
 protected override InvocableSequenceReturns <IToMock, string> CreateInvocableSequenceSequenceInvocationIndices(ISetup <IToMock, string> wrapped, Mock mock, ISequence sequence, IInvocationResponder <ISetup <IToMock, string>, string> responder, SequenceInvocationIndices sequenceInvocationIndices)
 {
     return(new InvocableSequenceReturns <IToMock, string>(wrapped, mock, sequence, responder, sequenceInvocationIndices));
 }
 protected abstract TInvocable CreateInvocableSequenceSequenceInvocationIndices(TWrapped wrapped, Mock mock, ISequence sequence, IInvocationResponder <TWrapped, TResponse> responder, SequenceInvocationIndices sequenceInvocationIndices);
Exemple #4
0
 public InvocableSequenceReturnBaseDerivation(ISetup <IToMock, string> wrapped, Mock mock, ISequence sequence, IInvocationResponder <ISetup <IToMock, string>, int> invocationResponder) : base(wrapped, mock, sequence, invocationResponder)
 {
 }
 public InvocableSequenceReturnBase(ISetup <TMock, TReturn> wrapped, Mock mock, ISequence sequence, IInvocationResponder <ISetup <TMock, TReturn>, TResponse> invocationResponder, SequenceInvocationIndices sequenceInvocationIndices)
     : base(wrapped, mock, sequence, invocationResponder, sequenceInvocationIndices)
 {
 }
 public InvocableSequenceExceptionsOrReturns(ISetup <TMock, TReturn> wrapped, Mock mock, ISequence sequence,
                                             IInvocationResponder <ISetup <TMock, TReturn>, ExceptionOrReturn <TReturn> > invocationResponder, SequenceInvocationIndices sequenceInvocationIndices) : base(wrapped, mock, sequence, invocationResponder, sequenceInvocationIndices)
 {
 }
Exemple #7
0
 public InvocableSequenceReturns(ISetup <TMock, TReturn> wrapped, Mock mock, ISequence sequence,
                                 IInvocationResponder <ISetup <TMock, TReturn>, TReturn> invocationResponder) : base(wrapped, mock, sequence, invocationResponder)
 {
 }
Exemple #8
0
 public InvocableSequenceNoReturn(ISetup <TMock> wrapped, Mock mock, ISequence sequence, IInvocationResponder <ISetup <TMock>, Exception> responder) : base(wrapped, mock, sequence, responder)
 {
 }
 public InvocableSequenceBase(TWrapped wrapped, Mock mock, ISequence sequence, IInvocationResponder <TWrapped, TResponse> invocationResponder, SequenceInvocationIndices sequenceInvocationIndices) : base(wrapped, mock, sequence, sequenceInvocationIndices)
 {
     this.invocationResponder = invocationResponder;
 }
 public InvocableSequenceBase(TWrapped wrapped, Mock mock, ISequence sequence, IInvocationResponder <TWrapped, TResponse> invocationResponder) : base(wrapped, mock, sequence, invocationResponder.ConfiguredResponses)
 {
     this.invocationResponder = invocationResponder;
 }
Exemple #11
0
 protected override InvocableSequenceNoReturn <IToMock> CreateInvocableSequenceSequenceInvocationIndices(ISetup <IToMock> wrapped, Mock mock, ISequence sequence, IInvocationResponder <ISetup <IToMock>, Exception> responder, SequenceInvocationIndices sequenceInvocationIndices)
 {
     return(new InvocableSequenceNoReturn <IToMock>(wrapped, mock, sequence, responder, sequenceInvocationIndices));
 }
Exemple #12
0
 protected override InvocableSequenceExceptionsOrReturns <IToMock, string> CreateInvocableSequence(ISetup <IToMock, string> wrapped, Mock mock, ISequence sequence, IInvocationResponder <ISetup <IToMock, string>, ExceptionOrReturn <string> > responder)
 {
     return(new InvocableSequenceExceptionsOrReturns <IToMock, string>(wrapped, mock, sequence, responder));
 }