< Summary

Class:Microsoft.Azure.CognitiveServices.Search.CustomSearch.Models.Answer
Assembly:Microsoft.Azure.CognitiveServices.Search.BingCustomSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingCustomSearch\src\Generated\CustomSearch\Models\Answer.cs
Covered lines:2
Uncovered lines:4
Coverable lines:6
Total lines:48
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%
get_FollowUpQueries()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingCustomSearch\src\Generated\CustomSearch\Models\Answer.cs

#LineLine coverage
 1// <auto-generated>
 2// Code generated by Microsoft (R) AutoRest Code Generator.
 3// Changes may cause incorrect behavior and will be lost if the code is
 4// regenerated.
 5// </auto-generated>
 6
 7namespace Microsoft.Azure.CognitiveServices.Search.CustomSearch.Models
 8{
 9    using Newtonsoft.Json;
 10    using System.Collections;
 11    using System.Collections.Generic;
 12    using System.Linq;
 13
 14    public partial class Answer : Response
 15    {
 16        /// <summary>
 17        /// Initializes a new instance of the Answer class.
 18        /// </summary>
 219        public Answer()
 20        {
 21            CustomInit();
 222        }
 23
 24        /// <summary>
 25        /// Initializes a new instance of the Answer class.
 26        /// </summary>
 27        /// <param name="id">A String identifier.</param>
 28        /// <param name="webSearchUrl">The URL To Bing's search result for this
 29        /// item.</param>
 30        public Answer(string id = default(string), string webSearchUrl = default(string), IList<Query> followUpQueries =
 031            : base(id, webSearchUrl)
 32        {
 033            FollowUpQueries = followUpQueries;
 34            CustomInit();
 035        }
 36
 37        /// <summary>
 38        /// An initialization method that performs custom operations like setting defaults
 39        /// </summary>
 40        partial void CustomInit();
 41
 42        /// <summary>
 43        /// </summary>
 44        [JsonProperty(PropertyName = "followUpQueries")]
 045        public IList<Query> FollowUpQueries { get; private set; }
 46
 47    }
 48}