< Summary

Class:Microsoft.Azure.CognitiveServices.Search.NewsSearch.Models.Answer
Assembly:Microsoft.Azure.CognitiveServices.Search.BingNewsSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingNewsSearch\src\Generated\NewsSearch\Models\Answer.cs
Covered lines:2
Uncovered lines:4
Coverable lines:6
Total lines:51
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.BingNewsSearch\src\Generated\NewsSearch\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.NewsSearch.Models
 8{
 9    using Newtonsoft.Json;
 10    using System.Collections;
 11    using System.Collections.Generic;
 12    using System.Linq;
 13
 14    /// <summary>
 15    /// Defines an answer.
 16    /// </summary>
 17    public partial class Answer : Response
 18    {
 19        /// <summary>
 20        /// Initializes a new instance of the Answer class.
 21        /// </summary>
 622        public Answer()
 23        {
 24            CustomInit();
 625        }
 26
 27        /// <summary>
 28        /// Initializes a new instance of the Answer class.
 29        /// </summary>
 30        /// <param name="id">A String identifier.</param>
 31        /// <param name="webSearchUrl">The URL To Bing's search result for this
 32        /// item.</param>
 33        public Answer(string id = default(string), string webSearchUrl = default(string), IList<Query> followUpQueries =
 034            : base(id, webSearchUrl)
 35        {
 036            FollowUpQueries = followUpQueries;
 37            CustomInit();
 038        }
 39
 40        /// <summary>
 41        /// An initialization method that performs custom operations like setting defaults
 42        /// </summary>
 43        partial void CustomInit();
 44
 45        /// <summary>
 46        /// </summary>
 47        [JsonProperty(PropertyName = "followUpQueries")]
 048        public IList<Query> FollowUpQueries { get; private set; }
 49
 50    }
 51}