< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.RegionProposal
Assembly:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\RegionProposal.cs
Covered lines:4
Uncovered lines:7
Coverable lines:11
Total lines:65
Line coverage:36.3% (4 of 11)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Confidence()-100%100%
get_BoundingBox()-100%100%
Validate()-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\RegionProposal.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    public partial class RegionProposal
 17    {
 18        /// <summary>
 19        /// Initializes a new instance of the RegionProposal class.
 20        /// </summary>
 221        public RegionProposal()
 22        {
 23            CustomInit();
 224        }
 25
 26        /// <summary>
 27        /// Initializes a new instance of the RegionProposal class.
 28        /// </summary>
 029        public RegionProposal(double confidence = default(double), BoundingBox boundingBox = default(BoundingBox))
 30        {
 031            Confidence = confidence;
 032            BoundingBox = boundingBox;
 33            CustomInit();
 034        }
 35
 36        /// <summary>
 37        /// An initialization method that performs custom operations like setting defaults
 38        /// </summary>
 39        partial void CustomInit();
 40
 41        /// <summary>
 42        /// </summary>
 43        [JsonProperty(PropertyName = "confidence")]
 444        public double Confidence { get; private set; }
 45
 46        /// <summary>
 47        /// </summary>
 48        [JsonProperty(PropertyName = "boundingBox")]
 649        public BoundingBox BoundingBox { get; private set; }
 50
 51        /// <summary>
 52        /// Validate the object.
 53        /// </summary>
 54        /// <exception cref="Rest.ValidationException">
 55        /// Thrown if validation fails
 56        /// </exception>
 57        public virtual void Validate()
 58        {
 059            if (BoundingBox != null)
 60            {
 061                BoundingBox.Validate();
 62            }
 063        }
 64    }
 65}