< Summary

Class:Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.QnASearchResultContext
Assembly:Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Knowledge.QnAMaker\src\Generated\Models\QnASearchResultContext.cs
Covered lines:2
Uncovered lines:4
Coverable lines:6
Total lines:63
Line coverage:33.3% (2 of 6)
Covered branches:0
Total branches:0

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Knowledge.QnAMaker\src\Generated\Models\QnASearchResultContext.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.CognitiveServices.Knowledge.QnAMaker.Models
 12{
 13    using System.Collections;
 14    using System.Collections.Generic;
 15    using System.Linq;
 16
 17    /// <summary>
 18    /// Context object of the QnA
 19    /// </summary>
 20    public partial class QnASearchResultContext : ContextDTO
 21    {
 22        /// <summary>
 23        /// Initializes a new instance of the QnASearchResultContext class.
 24        /// </summary>
 225        public QnASearchResultContext()
 26        {
 27            CustomInit();
 228        }
 29
 30        /// <summary>
 31        /// Initializes a new instance of the QnASearchResultContext class.
 32        /// </summary>
 33        /// <param name="isContextOnly">To mark if a prompt is relevant only
 34        /// with a previous question or not.
 35        /// true - Do not include this QnA as search result for queries without
 36        /// context
 37        /// false - ignores context and includes this QnA in search
 38        /// result</param>
 39        /// <param name="prompts">List of prompts associated with the
 40        /// answer.</param>
 41        public QnASearchResultContext(bool? isContextOnly = default(bool?), IList<PromptDTO> prompts = default(IList<Pro
 042            : base(isContextOnly, prompts)
 43        {
 44            CustomInit();
 045        }
 46
 47        /// <summary>
 48        /// An initialization method that performs custom operations like setting defaults
 49        /// </summary>
 50        partial void CustomInit();
 51
 52        /// <summary>
 53        /// Validate the object.
 54        /// </summary>
 55        /// <exception cref="Rest.ValidationException">
 56        /// Thrown if validation fails
 57        /// </exception>
 58        public override void Validate()
 59        {
 060            base.Validate();
 061        }
 62    }
 63}

Methods/Properties

.ctor()
.ctor(...)
Validate()