A class which contains the raw request values.
        /// <summary>
        /// Initialises a new instance of the <see cref="ODataQueryOptions"/> class.
        /// </summary>
        /// <param name="request">The request.</param>
        public ODataQueryOptions(HttpRequestMessage request)
        {
            if (request == null)
            {
                throw new ArgumentNullException("request");
            }

            var rawQuery = Uri.UnescapeDataString(request.RequestUri.Query);

            this.request = request;
            this.rawValues = new ODataRawQueryOptions(rawQuery);
        }
 public WhenCallingConstructorWithAllQueryOptions()
 {
     this.rawQueryOptions = new ODataRawQueryOptions(
         "?$expand=*&$filter=Name eq 'Fred'&$format=json&$inlinecount=allpages&$orderby=Name&$select=Name,Id&$skip=10&$skiptoken=5&$top=25");
 }
 public WhenCallingConstructorWithNoQueryOptions()
 {
     this.rawQueryOptions = new ODataRawQueryOptions(string.Empty);
 }