/// <summary> /// Initializes a new instance of the <see cref="NextLinkValidatingVisitor"/> class. /// </summary> /// <param name="requestUri">The request URI.</param> /// <param name="payloadOptions">The payload options.</param> /// <param name="parent">The parent verifier.</param> public NextLinkValidatingVisitor(ODataUri requestUri, ODataPayloadOptions payloadOptions, NextLinkResponseVerifier parent) { ExceptionUtilities.CheckArgumentNotNull(requestUri, "requestUri"); ExceptionUtilities.CheckArgumentNotNull(parent, "parent"); this.requestUri = requestUri; this.payloadOptions = payloadOptions; this.parent = parent; this.queryValueStack.Push(this.parent.UriEvaluator.Evaluate(requestUri, true, true)); }
/// <summary> /// Apples any changes to the expected payload options based on the specifics of the current format /// </summary> /// <param name="expected">The expected options</param> /// <param name="protocolVersion">The protocol version to consider when updating the expectations</param> /// <returns>The options with any updates for the specific format</returns> public virtual ODataPayloadOptions UpdateExpectedPayloadOptions(ODataPayloadOptions expected, DataServiceProtocolVersion protocolVersion) { return(expected.Without <ODataPayloadOptions>(ODataPayloadOptions.IncludeTypeNames)); }
/// <summary> /// Apples any changes to the expected payload options based on the specifics of the current format /// </summary> /// <param name="expected">The expected options</param> /// <param name="protocolVersion">The protocol version to consider when updating the expectations</param> /// <returns>The options with any updates for the specific format</returns> public virtual ODataPayloadOptions UpdateExpectedPayloadOptions(ODataPayloadOptions expected, DataServiceProtocolVersion protocolVersion) { return expected.Without<ODataPayloadOptions>(ODataPayloadOptions.IncludeTypeNames); }