< Summary

Class:Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.NewsArticle
Assembly:Microsoft.Azure.CognitiveServices.Search.BingWebSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingWebSearch\src\Generated\WebSearch\Models\NewsArticle.cs
Covered lines:2
Uncovered lines:2
Coverable lines:4
Total lines:56
Line coverage:50% (2 of 4)
Covered branches:0
Total branches:0

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingWebSearch\src\Generated\WebSearch\Models\NewsArticle.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.WebSearch.Models
 8{
 9    using System.Collections;
 10    using System.Collections.Generic;
 11    using System.Linq;
 12
 13    /// <summary>
 14    /// Defines a news article.
 15    /// </summary>
 16    public partial class NewsArticle : Article
 17    {
 18        /// <summary>
 19        /// Initializes a new instance of the NewsArticle class.
 20        /// </summary>
 1021        public NewsArticle()
 22        {
 23            CustomInit();
 1024        }
 25
 26        /// <summary>
 27        /// Initializes a new instance of the NewsArticle class.
 28        /// </summary>
 29        /// <param name="id">A String identifier.</param>
 30        /// <param name="webSearchUrl">The URL To Bing's search result for this
 31        /// item.</param>
 32        /// <param name="name">The name of the thing represented by this
 33        /// object.</param>
 34        /// <param name="url">The URL to get more information about the thing
 35        /// represented by this object.</param>
 36        /// <param name="description">A short description of the item.</param>
 37        /// <param name="bingId">An ID that uniquely identifies this
 38        /// item.</param>
 39        /// <param name="thumbnailUrl">The URL to a thumbnail of the
 40        /// item.</param>
 41        /// <param name="provider">The source of the creative work.</param>
 42        /// <param name="wordCount">The number of words in the text of the
 43        /// Article.</param>
 44        public NewsArticle(string id = default(string), string webSearchUrl = default(string), string name = default(str
 045            : base(id, webSearchUrl, name, url, image, description, bingId, thumbnailUrl, provider, text, wordCount)
 46        {
 47            CustomInit();
 048        }
 49
 50        /// <summary>
 51        /// An initialization method that performs custom operations like setting defaults
 52        /// </summary>
 53        partial void CustomInit();
 54
 55    }
 56}

Methods/Properties

.ctor()
.ctor(...)