/// <summary>
 /// Initializes a new instance of the DocumentSearchResult class. This constructor is intended to be used for test purposes, since
 /// the properties of this class are immutable.
 /// </summary>
 /// <param name="results">The sequence of results returned by the query.</param>
 /// <param name="count">The total count of results found by the search operation, or null if the count was not requested.</param>
 /// <param name="coverage">A value indicating the percentage of the index that was included in the query, or null if
 /// MinimumCoverage was not set in the <c cref="SearchParameters">SearchParameters</c>.</param>
 /// <param name="facets">The facet query results for the search operation, or null if the query did not include any facet
 /// expressions.</param>
 /// <param name="continuationToken">A continuation token that is used to continue fetching search results. This is necessary when
 /// Azure Search cannot fulfill a search request with a single response.</param>
 public DocumentSearchResult(
     IList <SearchResult <T> > results,
     long?count,
     double?coverage,
     IDictionary <string, IList <FacetResult> > facets,
     SearchContinuationToken continuationToken)
 {
     Count             = count;
     Coverage          = coverage;
     Facets            = facets;
     Results           = results;
     ContinuationToken = continuationToken;
 }
 partial void CustomInit()
 {
     // Ensure ContinuationToken is initialized.
     ContinuationToken = NextLink != null ? new SearchContinuationToken(NextLink, NextPageParameters) : null;
 }