public State( ITestWaitCondition <TFirst> first, ITestWaitCondition <TSecond> second, SourceContext sourceContext) : base(sourceContext) { this.first = first.CreateState(); this.second = second.CreateState(); }
public State( ITestWaitCondition <TFirst> first, Func <TFirst, ITestWaitCondition <TSecond> > continuation, SourceContext sourceContext) : base(sourceContext) { this.first = first.CreateState(); this.continuation = continuation; }
public State( ITestWaitCondition <TFirst> first, Func <TFirst, ITestWaitCondition <TSecond> > continuation, SourceContext sourceContext) : base(sourceContext) { this.first = first.CreateState(); this.continuation = new Continuation <TFirst, TSecond>( firstResult => continuation(firstResult).CreateState()); }
public State( string description, ITestWaitCondition <TArg> waitCondition, Func <TArg, ITestInstruction <T> > makeInstruction, SourceContext sourceContext) : base(sourceContext) { this.Description = description; this.waitCondition = waitCondition.CreateState(); this.makeInstruction = makeInstruction; }
public UntilResponder( IOptionalTestResponder responder, ITestWaitCondition <T> condition, SourceContext sourceContext) : base(() => new UntilResponderState <T>( "UNTIL", responder.CreateState(), condition.CreateState(), sourceContext)) { }
public BoxedWaitCondition(ITestWaitCondition <T> condition) : base(() => new BoxedOperationState <T, object>( condition.CreateState(), value => (object)value)) { }
public State(ITestWaitCondition <T> condition, TimeSpan timeout, SourceContext sourceContext) : base(sourceContext) { this.condition = condition.CreateState(); this.timeout = timeout; }
public SelectWaitCondition(ITestWaitCondition <T1> condition, Func <T1, T2> selector, SourceContext sourceContext) : base(() => new SelectOperationState <T1, T2>(condition.CreateState(), selector, sourceContext)) { }
public BoxedWaitCondition(ITestWaitCondition <T> condition) : base(() => new BoxedOperationState <T>(condition.CreateState())) { }