< Summary

Class:Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.Response
Assembly:Microsoft.Azure.CognitiveServices.Search.BingEntitySearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingEntitySearch\src\Generated\EntitySearch\Models\Response.cs
Covered lines:3
Uncovered lines:5
Coverable lines:8
Total lines:63
Line coverage:37.5% (3 of 8)
Covered branches:0
Total branches:0

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingEntitySearch\src\Generated\EntitySearch\Models\Response.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.EntitySearch.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 response. All schemas that could be returned at the root of a
 16    /// response should inherit from this
 17    /// </summary>
 18    public partial class Response : Identifiable
 19    {
 20        /// <summary>
 21        /// Initializes a new instance of the Response class.
 22        /// </summary>
 1223        public Response()
 24        {
 25            CustomInit();
 1226        }
 27
 28        /// <summary>
 29        /// Initializes a new instance of the Response class.
 30        /// </summary>
 31        /// <param name="id">A String identifier.</param>
 32        /// <param name="contractualRules">A list of rules that you must adhere
 33        /// to if you display the item.</param>
 34        /// <param name="webSearchUrl">The URL To Bing's search result for this
 35        /// item.</param>
 36        public Response(string id = default(string), IList<ContractualRulesContractualRule> contractualRules = default(I
 037            : base(id)
 38        {
 039            ContractualRules = contractualRules;
 040            WebSearchUrl = webSearchUrl;
 41            CustomInit();
 042        }
 43
 44        /// <summary>
 45        /// An initialization method that performs custom operations like setting defaults
 46        /// </summary>
 47        partial void CustomInit();
 48
 49        /// <summary>
 50        /// Gets a list of rules that you must adhere to if you display the
 51        /// item.
 52        /// </summary>
 53        [JsonProperty(PropertyName = "contractualRules")]
 654        public IList<ContractualRulesContractualRule> ContractualRules { get; private set; }
 55
 56        /// <summary>
 57        /// Gets the URL To Bing's search result for this item.
 58        /// </summary>
 59        [JsonProperty(PropertyName = "webSearchUrl")]
 060        public string WebSearchUrl { get; private set; }
 61
 62    }
 63}