< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.Region
Assembly:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\Region.cs
Covered lines:0
Uncovered lines:15
Coverable lines:15
Total lines:91
Line coverage:0% (0 of 15)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_TagId()-0%100%
get_Left()-0%100%
get_Top()-0%100%
get_Width()-0%100%
get_Height()-0%100%
Validate()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\Region.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 Region
 17    {
 18        /// <summary>
 19        /// Initializes a new instance of the Region class.
 20        /// </summary>
 021        public Region()
 22        {
 23            CustomInit();
 024        }
 25
 26        /// <summary>
 27        /// Initializes a new instance of the Region class.
 28        /// </summary>
 29        /// <param name="tagId">Id of the tag associated with this
 30        /// region.</param>
 31        /// <param name="left">Coordinate of the left boundary.</param>
 32        /// <param name="top">Coordinate of the top boundary.</param>
 33        /// <param name="width">Width.</param>
 34        /// <param name="height">Height.</param>
 035        public Region(System.Guid tagId, double left, double top, double width, double height)
 36        {
 037            TagId = tagId;
 038            Left = left;
 039            Top = top;
 040            Width = width;
 041            Height = height;
 42            CustomInit();
 043        }
 44
 45        /// <summary>
 46        /// An initialization method that performs custom operations like setting defaults
 47        /// </summary>
 48        partial void CustomInit();
 49
 50        /// <summary>
 51        /// Gets or sets id of the tag associated with this region.
 52        /// </summary>
 53        [JsonProperty(PropertyName = "tagId")]
 054        public System.Guid TagId { get; set; }
 55
 56        /// <summary>
 57        /// Gets or sets coordinate of the left boundary.
 58        /// </summary>
 59        [JsonProperty(PropertyName = "left")]
 060        public double Left { get; set; }
 61
 62        /// <summary>
 63        /// Gets or sets coordinate of the top boundary.
 64        /// </summary>
 65        [JsonProperty(PropertyName = "top")]
 066        public double Top { get; set; }
 67
 68        /// <summary>
 69        /// Gets or sets width.
 70        /// </summary>
 71        [JsonProperty(PropertyName = "width")]
 072        public double Width { get; set; }
 73
 74        /// <summary>
 75        /// Gets or sets height.
 76        /// </summary>
 77        [JsonProperty(PropertyName = "height")]
 078        public double Height { get; set; }
 79
 80        /// <summary>
 81        /// Validate the object.
 82        /// </summary>
 83        /// <exception cref="Rest.ValidationException">
 84        /// Thrown if validation fails
 85        /// </exception>
 86        public virtual void Validate()
 87        {
 88            //Nothing to validate
 089        }
 90    }
 91}