< Summary

Class:Microsoft.Azure.CognitiveServices.Language.TextAnalytics.Models.LanguageInput
Assembly:Microsoft.Azure.CognitiveServices.Language.TextAnalytics
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.TextAnalytics\src\Customizations\TextAnalytics\Models\LanguageInput.cs
Covered lines:8
Uncovered lines:2
Coverable lines:10
Total lines:55
Line coverage:80% (8 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_CountryHint()-100%100%
get_Id()-100%100%
get_Text()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.TextAnalytics\src\Customizations\TextAnalytics\Models\LanguageInput.cs

#LineLine coverage
 1//
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6
 7namespace Microsoft.Azure.CognitiveServices.Language.TextAnalytics.Models
 8{
 9    using Newtonsoft.Json;
 10
 11    public partial class LanguageInput
 12    {
 13        /// <summary>
 14        /// Initializes a new instance of the LanguageInput class.
 15        /// </summary>
 016        public LanguageInput()
 17        {
 18            CustomInit();
 019        }
 20
 21        /// <summary>
 22        /// Initializes a new instance of the LanguageInput class.
 23        /// </summary>
 24        /// <param name="id">Unique, non-empty document identifier.</param>
 425        public LanguageInput(string id = default, string text = default, string countryHint = default)
 26        {
 427            CountryHint = countryHint;
 428            Id = id;
 429            Text = text;
 30            CustomInit();
 431        }
 32
 33        /// <summary>
 34        /// An initialization method that performs custom operations like setting defaults
 35        /// </summary>
 36        partial void CustomInit();
 37
 38        /// <summary>
 39        /// </summary>
 40        [JsonProperty(PropertyName = "countryHint", Order = 3)]
 841        public string CountryHint { get; set; }
 42
 43        /// <summary>
 44        /// Gets or sets unique, non-empty document identifier.
 45        /// </summary>
 46        [JsonProperty(PropertyName = "id", Order = 1)]
 847        public string Id { get; set; }
 48
 49        /// <summary>
 50        /// </summary>
 51        [JsonProperty(PropertyName = "text", Order = 2)]
 852        public string Text { get; set; }
 53
 54    }
 55}