< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\Generated\Models\MultiLanguageInput.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;
 9
 10namespace Azure.AI.TextAnalytics.Models
 11{
 12    /// <summary> Contains an input document to be analyzed by the service. </summary>
 13    internal partial class MultiLanguageInput
 14    {
 15        /// <summary> Initializes a new instance of MultiLanguageInput. </summary>
 16        /// <param name="id"> A unique, non-empty document identifier. </param>
 17        /// <param name="text"> The input text to process. </param>
 18        /// <exception cref="ArgumentNullException"> <paramref name="id"/> or <paramref name="text"/> is null. </excepti
 019        public MultiLanguageInput(string id, string text)
 20        {
 021            if (id == null)
 22            {
 023                throw new ArgumentNullException(nameof(id));
 24            }
 025            if (text == null)
 26            {
 027                throw new ArgumentNullException(nameof(text));
 28            }
 29
 030            Id = id;
 031            Text = text;
 032        }
 33
 34        /// <summary> A unique, non-empty document identifier. </summary>
 035        public string Id { get; }
 36        /// <summary> The input text to process. </summary>
 037        public string Text { get; }
 38        /// <summary> (Optional) This is the 2 letter ISO 639-1 representation of a language. For example, use &quot;en&
 039        public string Language { get; set; }
 40    }
 41}

C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\Generated\Models\MultiLanguageInput.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 MultiLanguageInput : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("id");
 019            writer.WriteStringValue(Id);
 020            writer.WritePropertyName("text");
 021            writer.WriteStringValue(Text);
 022            if (Optional.IsDefined(Language))
 23            {
 024                writer.WritePropertyName("language");
 025                writer.WriteStringValue(Language);
 26            }
 027            writer.WriteEndObject();
 028        }
 29    }
 30}