< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Documents()-100%100%
get_Errors()-100%100%
get_Statistics()-0%100%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 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// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.CognitiveServices.Language.TextAnalytics.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Collections;
 15    using System.Collections.Generic;
 16    using System.Linq;
 17
 18    public partial class EntitiesBatchResult
 19    {
 20        /// <summary>
 21        /// Initializes a new instance of the EntitiesBatchResult class.
 22        /// </summary>
 423        public EntitiesBatchResult()
 24        {
 25            CustomInit();
 426        }
 27
 28        /// <summary>
 29        /// Initializes a new instance of the EntitiesBatchResult class.
 30        /// </summary>
 31        /// <param name="documents">Response by document</param>
 32        /// <param name="errors">Errors and Warnings by document</param>
 33        /// <param name="statistics">(Optional) if showStats=true was specified
 34        /// in the request this field will contain information about the
 35        /// request payload.</param>
 036        public EntitiesBatchResult(IList<EntitiesBatchResultItem> documents = default(IList<EntitiesBatchResultItem>), I
 37        {
 038            Documents = documents;
 039            Errors = errors;
 040            Statistics = statistics;
 41            CustomInit();
 042        }
 43
 44        /// <summary>
 45        /// An initialization method that performs custom operations like setting defaults
 46        /// </summary>
 47        partial void CustomInit();
 48
 49        /// <summary>
 50        /// Gets response by document
 51        /// </summary>
 52        [JsonProperty(PropertyName = "documents")]
 2253        public IList<EntitiesBatchResultItem> Documents { get; private set; }
 54
 55        /// <summary>
 56        /// Gets errors and Warnings by document
 57        /// </summary>
 58        [JsonProperty(PropertyName = "errors")]
 1059        public IList<ErrorRecord> Errors { get; private set; }
 60
 61        /// <summary>
 62        /// Gets (Optional) if showStats=true was specified in the request this
 63        /// field will contain information about the request payload.
 64        /// </summary>
 65        [JsonProperty(PropertyName = "statistics")]
 066        public RequestStatistics Statistics { get; private set; }
 67
 68    }
 69}