< Summary

Class:Azure.AI.TextAnalytics.TextAnalyticsInput
Assembly:Azure.AI.TextAnalytics
File(s):C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\TextAnalyticsInput.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:32
Line coverage:100% (6 of 6)
Covered branches:0
Total branches:0

Metrics

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

File(s)

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

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4namespace Azure.AI.TextAnalytics
 5{
 6    /// <summary>
 7    /// An input representing an individual text document to
 8    /// be analyzed by the Text Analytics predictive model for a given operation.
 9    /// </summary>
 10    public class TextAnalyticsInput
 11    {
 12        /// <summary>
 13        /// Initializes a new instance of the <see cref="TextAnalyticsInput"/>
 14        /// class for the specified service instance.
 15        /// </summary>
 34016        internal TextAnalyticsInput(string id, string text)
 17        {
 34018            Id = id;
 34019            Text = text;
 34020        }
 21
 22        /// <summary>
 23        /// Gets the unique, non-empty identifier for the document.
 24        /// </summary>
 58425        public string Id { get; }
 26
 27        /// <summary>
 28        /// Gets the text of the document.
 29        /// </summary>
 34430        public string Text { get; }
 31    }
 32}

Methods/Properties

.ctor(...)
get_Id()
get_Text()