public TestCase WithTarget( PredicateTargetValue target, Func <List <OptionPosition>, object> referenceValueProvider ) { Target = target; ReferenceValueProvider = referenceValueProvider; return(this); }
/// <summary> /// Initializes a new instance of the <see cref="IOptionStrategyLegPredicateReferenceValue"/> class /// </summary> /// <param name="index">The legs list index</param> /// <param name="target">The property value being referenced</param> public OptionStrategyLegPredicateReferenceValue(int index, PredicateTargetValue target) { _index = index; Target = target; }
/// <summary> /// Initializes a new instance of the <see cref="ConstantOptionStrategyLegPredicateReferenceValue{T}"/> class /// </summary> /// <param name="value">The constant reference value</param> /// <param name="target">The value target in relation to the <see cref="OptionPosition"/></param> public ConstantOptionStrategyLegPredicateReferenceValue(T value, PredicateTargetValue target) { _value = value; Target = target; }