< Summary

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingNewsSearch\src\Generated\NewsSearch\Models\SearchResultsAnswer.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 a search result answer.
 16    /// </summary>
 17    public partial class SearchResultsAnswer : Answer
 18    {
 19        /// <summary>
 20        /// Initializes a new instance of the SearchResultsAnswer class.
 21        /// </summary>
 422        public SearchResultsAnswer()
 23        {
 24            CustomInit();
 425        }
 26
 27        /// <summary>
 28        /// Initializes a new instance of the SearchResultsAnswer 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        /// <param name="totalEstimatedMatches">The estimated number of
 34        /// webpages that are relevant to the query. Use this number along with
 35        /// the count and offset query parameters to page the results.</param>
 36        public SearchResultsAnswer(string id = default(string), string webSearchUrl = default(string), IList<Query> foll
 037            : base(id, webSearchUrl, followUpQueries)
 38        {
 039            TotalEstimatedMatches = totalEstimatedMatches;
 40            CustomInit();
 041        }
 42
 43        /// <summary>
 44        /// An initialization method that performs custom operations like setting defaults
 45        /// </summary>
 46        partial void CustomInit();
 47
 48        /// <summary>
 49        /// Gets the estimated number of webpages that are relevant to the
 50        /// query. Use this number along with the count and offset query
 51        /// parameters to page the results.
 52        /// </summary>
 53        [JsonProperty(PropertyName = "totalEstimatedMatches")]
 054        public long? TotalEstimatedMatches { get; private set; }
 55
 56    }
 57}