< Summary

Class:Microsoft.Azure.CognitiveServices.Search.AutoSuggest.Models.Thing
Assembly:Microsoft.Azure.CognitiveServices.Search.BingAutoSuggest
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingAutoSuggest\src\Generated\AutoSuggest\Models\Thing.cs
Covered lines:3
Uncovered lines:3
Coverable lines:6
Total lines:56
Line coverage:50% (3 of 6)
Covered branches:0
Total branches:0

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingAutoSuggest\src\Generated\AutoSuggest\Models\Thing.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.AutoSuggest.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 thing.
 16    /// </summary>
 17    public partial class Thing : Response
 18    {
 19        /// <summary>
 20        /// Initializes a new instance of the Thing class.
 21        /// </summary>
 1622        public Thing()
 23        {
 24            CustomInit();
 1625        }
 26
 27        /// <summary>
 28        /// Initializes a new instance of the Thing class.
 29        /// </summary>
 30        /// <param name="id">A String identifier.</param>
 31        /// <param name="readLink">The URL that returns this resource.</param>
 32        /// <param name="webSearchUrl">The URL To Bing's search result for this
 33        /// item.</param>
 34        /// <param name="url">The URL to get more information about the thing
 35        /// represented by this object.</param>
 36        public Thing(string id = default(string), string readLink = default(string), string webSearchUrl = default(strin
 037            : base(id, readLink, webSearchUrl, potentialAction, immediateAction, preferredClickthroughUrl, adaptiveCard)
 38        {
 039            Url = url;
 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 URL to get more information about the thing represented by
 50        /// this object.
 51        /// </summary>
 52        [JsonProperty(PropertyName = "url")]
 3253        public string Url { get; private set; }
 54
 55    }
 56}

Methods/Properties

.ctor()
.ctor(...)
get_Url()