< Summary

Class:Azure.AI.FormRecognizer.Training.AccountProperties
Assembly:Azure.AI.FormRecognizer
File(s):C:\Git\azure-sdk-for-net\sdk\formrecognizer\Azure.AI.FormRecognizer\src\AccountProperties.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:30
Line coverage:100% (6 of 6)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
get_CustomModelCount()-100%100%
get_CustomModelLimit()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\formrecognizer\Azure.AI.FormRecognizer\src\AccountProperties.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using Azure.AI.FormRecognizer.Models;
 5
 6namespace Azure.AI.FormRecognizer.Training
 7{
 8    /// <summary>
 9    /// Contains general information about a Cognitive Services Account, such as the number
 10    /// of models and account limits.
 11    /// </summary>
 12    public class AccountProperties
 13    {
 814        internal AccountProperties(ModelsSummary summary)
 15        {
 816            CustomModelCount = summary.Count;
 817            CustomModelLimit = summary.Limit;
 818        }
 19
 20        /// <summary>
 21        /// The current count of trained custom models.
 22        /// </summary>
 823        public int CustomModelCount { get; }
 24
 25        /// <summary>
 26        /// The maximum number of models that can be trained for this subscription.
 27        /// </summary>
 828        public int CustomModelLimit { get; }
 29    }
 30}