< Summary

Class:Azure.AI.TextAnalytics.Models.MultiLanguageBatchInput
Assembly:Azure.AI.TextAnalytics
File(s):C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\Generated\Models\MultiLanguageBatchInput.cs
C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\Generated\Models\MultiLanguageBatchInput.Serialization.cs
Covered lines:0
Uncovered lines:14
Coverable lines:14
Total lines:61
Line coverage:0% (0 of 14)
Covered branches:0
Total branches:4
Branch coverage:0% (0 of 4)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_Documents()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\Generated\Models\MultiLanguageBatchInput.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9using System.Collections.Generic;
 10using System.Linq;
 11
 12namespace Azure.AI.TextAnalytics.Models
 13{
 14    /// <summary> Contains a set of input documents to be analyzed by the service. </summary>
 15    internal partial class MultiLanguageBatchInput
 16    {
 17        /// <summary> Initializes a new instance of MultiLanguageBatchInput. </summary>
 18        /// <param name="documents"> The set of documents to process as part of this batch. </param>
 19        /// <exception cref="ArgumentNullException"> <paramref name="documents"/> is null. </exception>
 020        public MultiLanguageBatchInput(IEnumerable<MultiLanguageInput> documents)
 21        {
 022            if (documents == null)
 23            {
 024                throw new ArgumentNullException(nameof(documents));
 25            }
 26
 027            Documents = documents.ToList();
 028        }
 29
 30        /// <summary> The set of documents to process as part of this batch. </summary>
 031        public IList<MultiLanguageInput> Documents { get; }
 32    }
 33}

C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\Generated\Models\MultiLanguageBatchInput.Serialization.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.AI.TextAnalytics.Models
 12{
 13    internal partial class MultiLanguageBatchInput : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("documents");
 019            writer.WriteStartArray();
 020            foreach (var item in Documents)
 21            {
 022                writer.WriteObjectValue(item);
 23            }
 024            writer.WriteEndArray();
 025            writer.WriteEndObject();
 026        }
 27    }
 28}