< Summary

Class:Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.LocalBusiness
Assembly:Microsoft.Azure.CognitiveServices.Search.BingEntitySearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingEntitySearch\src\Generated\EntitySearch\Models\LocalBusiness.cs
Covered lines:0
Uncovered lines:18
Coverable lines:18
Total lines:104
Line coverage:0% (0 of 18)
Covered branches:0
Total branches:6
Branch coverage:0% (0 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_PriceRange()-0%100%
get_Panoramas()-0%100%
get_IsPermanentlyClosed()-0%100%
get_TagLine()-0%100%
Validate()-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingEntitySearch\src\Generated\EntitySearch\Models\LocalBusiness.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    public partial class LocalBusiness : Place
 15    {
 16        /// <summary>
 17        /// Initializes a new instance of the LocalBusiness class.
 18        /// </summary>
 019        public LocalBusiness()
 20        {
 21            CustomInit();
 022        }
 23
 24        /// <summary>
 25        /// Initializes a new instance of the LocalBusiness class.
 26        /// </summary>
 27        /// <param name="id">A String identifier.</param>
 28        /// <param name="contractualRules">A list of rules that you must adhere
 29        /// to if you display the item.</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="entityPresentationInfo">Additional information about
 38        /// the entity such as hints that you can use to determine the entity's
 39        /// type. To determine the entity's type, use the entityScenario and
 40        /// entityTypeHint fields.</param>
 41        /// <param name="bingId">An ID that uniquely identifies this
 42        /// item.</param>
 43        /// <param name="address">The postal address of where the entity is
 44        /// located</param>
 45        /// <param name="telephone">The entity's telephone number</param>
 46        /// <param name="priceRange">$$.</param>
 47        public LocalBusiness(string id = default(string), IList<ContractualRulesContractualRule> contractualRules = defa
 048            : base(id, contractualRules, webSearchUrl, name, url, image, description, entityPresentationInfo, bingId, ad
 49        {
 050            PriceRange = priceRange;
 051            Panoramas = panoramas;
 052            IsPermanentlyClosed = isPermanentlyClosed;
 053            TagLine = tagLine;
 54            CustomInit();
 055        }
 56
 57        /// <summary>
 58        /// An initialization method that performs custom operations like setting defaults
 59        /// </summary>
 60        partial void CustomInit();
 61
 62        /// <summary>
 63        /// Gets $$.
 64        /// </summary>
 65        [JsonProperty(PropertyName = "priceRange")]
 066        public string PriceRange { get; private set; }
 67
 68        /// <summary>
 69        /// </summary>
 70        [JsonProperty(PropertyName = "panoramas")]
 071        public IList<ImageObject> Panoramas { get; private set; }
 72
 73        /// <summary>
 74        /// </summary>
 75        [JsonProperty(PropertyName = "isPermanentlyClosed")]
 076        public bool? IsPermanentlyClosed { get; private set; }
 77
 78        /// <summary>
 79        /// </summary>
 80        [JsonProperty(PropertyName = "tagLine")]
 081        public string TagLine { get; private set; }
 82
 83        /// <summary>
 84        /// Validate the object.
 85        /// </summary>
 86        /// <exception cref="Rest.ValidationException">
 87        /// Thrown if validation fails
 88        /// </exception>
 89        public override void Validate()
 90        {
 091            base.Validate();
 092            if (Panoramas != null)
 93            {
 094                foreach (var element in Panoramas)
 95                {
 096                    if (element != null)
 97                    {
 098                        element.Validate();
 99                    }
 100                }
 101            }
 0102        }
 103    }
 104}