< Summary

Class:Microsoft.Azure.Search.Models.SuggestResult`1
Assembly:Microsoft.Azure.Search.Data
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Data\src\Generated\Models\SuggestResult.cs
Covered lines:6
Uncovered lines:2
Coverable lines:8
Total lines:61
Line coverage:75% (6 of 8)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_Document()-100%100%
get_Text()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Data\src\Generated\Models\SuggestResult.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.Search.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Collections;
 15    using System.Collections.Generic;
 16    using System.Linq;
 17
 18    /// <summary>
 19    /// A result containing a document found by a suggestion query, plus
 20    /// associated metadata.
 21    /// </summary>
 22    public partial class SuggestResult<T>
 23    {
 24        /// <summary>
 25        /// Initializes a new instance of the SuggestResult class.
 26        /// </summary>
 027        public SuggestResult()
 28        {
 29            CustomInit();
 030        }
 31
 32        /// <summary>
 33        /// Initializes a new instance of the SuggestResult class.
 34        /// </summary>
 35        /// <param name="document">The document on which the suggested text is based.</param>
 36        /// <param name="text">The text of the suggestion result.</param>
 10837        public SuggestResult(T document = default(T), string text = default(string))
 38        {
 10839            Document = document;
 10840            Text = text;
 41            CustomInit();
 10842        }
 43
 44        /// <summary>
 45        /// An initialization method that performs custom operations like setting defaults
 46        /// </summary>
 47        partial void CustomInit();
 48
 49        /// <summary>
 50        /// Gets the document on which the suggested text is based.
 51        /// </summary>
 18852        public T Document { get; private set; }
 53
 54        /// <summary>
 55        /// Gets the text of the suggestion result.
 56        /// </summary>
 57        [JsonProperty(PropertyName = "@search.text")]
 13258        public string Text { get; private set; }
 59
 60    }
 61}