Пример #1
0
            /// <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>
            /// 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));
            }