< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
get_IncludeFieldElements()-100%100%
get_ContentType()-100%100%

File(s)

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

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4namespace Azure.AI.FormRecognizer
 5{
 6    /// <summary>
 7    /// The set of options that can be specified when calling a recognize receipt method
 8    /// to configure the behavior of the request.
 9    /// </summary>
 10    public class RecognizeReceiptsOptions
 11    {
 12        /// <summary>
 13        /// Initializes a new instance of the <see cref="RecognizeReceiptsOptions"/> class.
 14        /// </summary>
 6815        public RecognizeReceiptsOptions()
 16        {
 6817        }
 18
 19        /// <summary>
 20        /// Whether or not to include form elements such as lines and words in addition to form fields.
 21        /// </summary>
 8422        public bool IncludeFieldElements { get; set; } = false;
 23
 24        /// <summary>
 25        /// When set, specifies the content type for uploaded streams and skips automatic
 26        /// content type detection.
 27        /// </summary>
 4428        public FormContentType? ContentType { get; set; } = null;
 29    }
 30}