< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingEntitySearch\src\Generated\EntitySearch\Models\TouristAttraction.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 System.Collections;
 10    using System.Collections.Generic;
 11    using System.Linq;
 12
 13    public partial class TouristAttraction : Place
 14    {
 15        /// <summary>
 16        /// Initializes a new instance of the TouristAttraction class.
 17        /// </summary>
 018        public TouristAttraction()
 19        {
 20            CustomInit();
 021        }
 22
 23        /// <summary>
 24        /// Initializes a new instance of the TouristAttraction class.
 25        /// </summary>
 26        /// <param name="id">A String identifier.</param>
 27        /// <param name="contractualRules">A list of rules that you must adhere
 28        /// to if you display the item.</param>
 29        /// <param name="webSearchUrl">The URL To Bing's search result for this
 30        /// item.</param>
 31        /// <param name="name">The name of the thing represented by this
 32        /// object.</param>
 33        /// <param name="url">The URL to get more information about the thing
 34        /// represented by this object.</param>
 35        /// <param name="description">A short description of the item.</param>
 36        /// <param name="entityPresentationInfo">Additional information about
 37        /// the entity such as hints that you can use to determine the entity's
 38        /// type. To determine the entity's type, use the entityScenario and
 39        /// entityTypeHint fields.</param>
 40        /// <param name="bingId">An ID that uniquely identifies this
 41        /// item.</param>
 42        /// <param name="address">The postal address of where the entity is
 43        /// located</param>
 44        /// <param name="telephone">The entity's telephone number</param>
 45        public TouristAttraction(string id = default(string), IList<ContractualRulesContractualRule> contractualRules = 
 046            : base(id, contractualRules, webSearchUrl, name, url, image, description, entityPresentationInfo, bingId, ad
 47        {
 48            CustomInit();
 049        }
 50
 51        /// <summary>
 52        /// An initialization method that performs custom operations like setting defaults
 53        /// </summary>
 54        partial void CustomInit();
 55
 56        /// <summary>
 57        /// Validate the object.
 58        /// </summary>
 59        /// <exception cref="Rest.ValidationException">
 60        /// Thrown if validation fails
 61        /// </exception>
 62        public override void Validate()
 63        {
 064            base.Validate();
 065        }
 66    }
 67}

Methods/Properties

.ctor()
.ctor(...)
Validate()