< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\ImageRegionCreateResult.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 ImageRegionCreateResult
 17    {
 18        /// <summary>
 19        /// Initializes a new instance of the ImageRegionCreateResult class.
 20        /// </summary>
 221        public ImageRegionCreateResult()
 22        {
 23            CustomInit();
 224        }
 25
 26        /// <summary>
 27        /// Initializes a new instance of the ImageRegionCreateResult 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 ImageRegionCreateResult(System.Guid tagId, double left, double top, double width, double height, System.G
 36        {
 037            ImageId = imageId;
 038            RegionId = regionId;
 039            TagName = tagName;
 040            Created = created;
 041            TagId = tagId;
 042            Left = left;
 043            Top = top;
 044            Width = width;
 045            Height = height;
 46            CustomInit();
 047        }
 48
 49        /// <summary>
 50        /// An initialization method that performs custom operations like setting defaults
 51        /// </summary>
 52        partial void CustomInit();
 53
 54        /// <summary>
 55        /// </summary>
 56        [JsonProperty(PropertyName = "imageId")]
 457        public System.Guid ImageId { get; private set; }
 58
 59        /// <summary>
 60        /// </summary>
 61        [JsonProperty(PropertyName = "regionId")]
 662        public System.Guid RegionId { get; private set; }
 63
 64        /// <summary>
 65        /// </summary>
 66        [JsonProperty(PropertyName = "tagName")]
 067        public string TagName { get; private set; }
 68
 69        /// <summary>
 70        /// </summary>
 71        [JsonProperty(PropertyName = "created")]
 072        public System.DateTime Created { get; private set; }
 73
 74        /// <summary>
 75        /// Gets or sets id of the tag associated with this region.
 76        /// </summary>
 77        [JsonProperty(PropertyName = "tagId")]
 478        public System.Guid TagId { get; set; }
 79
 80        /// <summary>
 81        /// Gets or sets coordinate of the left boundary.
 82        /// </summary>
 83        [JsonProperty(PropertyName = "left")]
 484        public double Left { get; set; }
 85
 86        /// <summary>
 87        /// Gets or sets coordinate of the top boundary.
 88        /// </summary>
 89        [JsonProperty(PropertyName = "top")]
 490        public double Top { get; set; }
 91
 92        /// <summary>
 93        /// Gets or sets width.
 94        /// </summary>
 95        [JsonProperty(PropertyName = "width")]
 496        public double Width { get; set; }
 97
 98        /// <summary>
 99        /// Gets or sets height.
 100        /// </summary>
 101        [JsonProperty(PropertyName = "height")]
 4102        public double Height { get; set; }
 103
 104        /// <summary>
 105        /// Validate the object.
 106        /// </summary>
 107        /// <exception cref="Rest.ValidationException">
 108        /// Thrown if validation fails
 109        /// </exception>
 110        public virtual void Validate()
 111        {
 112            //Nothing to validate
 0113        }
 114    }
 115}