< Summary

Class:Microsoft.Azure.CognitiveServices.Language.TextAnalytics.Models.EntitiesResult
Assembly:Microsoft.Azure.CognitiveServices.Language.TextAnalytics
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.TextAnalytics\src\Customizations\TextAnalytics\Models\EntitiesResult.cs
Covered lines:6
Uncovered lines:4
Coverable lines:10
Total lines:62
Line coverage:60% (6 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_Entities()-100%100%
get_ErrorMessage()-0%100%
get_Statistics()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.TextAnalytics\src\Customizations\TextAnalytics\Models\EntitiesResult.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 System.Collections.Generic;
 10    using Newtonsoft.Json;
 11
 12    public partial class EntitiesResult
 13    {
 14        /// <summary>
 15        /// Initializes a new instance of the EntitiesResult class.
 16        /// </summary>
 017        public EntitiesResult()
 18        {
 19            CustomInit();
 020        }
 21
 22        /// <summary>
 23        /// Initializes a new instance of the EntitiesResult class.
 24        /// </summary>
 25        /// <param name="entities">Recognized entities in the document.</param>
 26        /// <param name="errorMessage">Error or Warning related to the document.</param>
 27        /// <param name="statistics">(Optional) if showStats=true was specified
 28        /// in the request this field will contain information about the
 29        /// request payload.</param>
 230        public EntitiesResult(IList<EntityRecord> entities = default(IList<EntityRecord>), string errorMessage = default
 31        {
 232            Entities = entities;
 233            ErrorMessage = errorMessage;
 234            Statistics = statistics;
 35            CustomInit();
 236        }
 37
 38        /// <summary>
 39        /// An initialization method that performs custom operations like setting defaults
 40        /// </summary>
 41        partial void CustomInit();
 42
 43        /// <summary>
 44        /// Gets recognized entities in the document.
 45        /// </summary>
 46        [JsonProperty(PropertyName = "entities")]
 1247        public IList<EntityRecord> Entities { get; private set; }
 48
 49        /// <summary>
 50        /// Gets error or warning for the request.
 51        /// </summary>
 52        [JsonProperty(PropertyName = "ErrorMessage")]
 053        public string ErrorMessage { get; private set; }
 54
 55        /// <summary>
 56        /// Gets (Optional) if showStats=true was specified in the request this
 57        /// field will contain information about the request payload.
 58        /// </summary>
 59        [JsonProperty(PropertyName = "statistics")]
 060        public RequestStatistics Statistics { get; set; }
 61    }
 62}