< Summary

Class:Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.ContractualRulesContractualRule
Assembly:Microsoft.Azure.CognitiveServices.Search.BingEntitySearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingEntitySearch\src\Generated\EntitySearch\Models\ContractualRulesContractualRule.cs
Covered lines:3
Uncovered lines:3
Coverable lines:6
Total lines:48
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_TargetPropertyName()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingEntitySearch\src\Generated\EntitySearch\Models\ContractualRulesContractualRule.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.Linq;
 11
 12    [Newtonsoft.Json.JsonObject("ContractualRules/ContractualRule")]
 13    public partial class ContractualRulesContractualRule
 14    {
 15        /// <summary>
 16        /// Initializes a new instance of the ContractualRulesContractualRule
 17        /// class.
 18        /// </summary>
 619        public ContractualRulesContractualRule()
 20        {
 21            CustomInit();
 622        }
 23
 24        /// <summary>
 25        /// Initializes a new instance of the ContractualRulesContractualRule
 26        /// class.
 27        /// </summary>
 28        /// <param name="targetPropertyName">The name of the field that the
 29        /// rule applies to.</param>
 030        public ContractualRulesContractualRule(string targetPropertyName = default(string))
 31        {
 032            TargetPropertyName = targetPropertyName;
 33            CustomInit();
 034        }
 35
 36        /// <summary>
 37        /// An initialization method that performs custom operations like setting defaults
 38        /// </summary>
 39        partial void CustomInit();
 40
 41        /// <summary>
 42        /// Gets the name of the field that the rule applies to.
 43        /// </summary>
 44        [JsonProperty(PropertyName = "targetPropertyName")]
 845        public string TargetPropertyName { get; private set; }
 46
 47    }
 48}