< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Id()-100%100%
get_Name()-100%100%
get_Type()-0%100%
get_Exportable()-100%100%
get_Enabled()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\Domain.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 Domain
 17    {
 18        /// <summary>
 19        /// Initializes a new instance of the Domain class.
 20        /// </summary>
 3021        public Domain()
 22        {
 23            CustomInit();
 3024        }
 25
 26        /// <summary>
 27        /// Initializes a new instance of the Domain class.
 28        /// </summary>
 29        /// <param name="type">Possible values include: 'Classification',
 30        /// 'ObjectDetection'</param>
 031        public Domain(System.Guid id = default(System.Guid), string name = default(string), string type = default(string
 32        {
 033            Id = id;
 034            Name = name;
 035            Type = type;
 036            Exportable = exportable;
 037            Enabled = enabled;
 38            CustomInit();
 039        }
 40
 41        /// <summary>
 42        /// An initialization method that performs custom operations like setting defaults
 43        /// </summary>
 44        partial void CustomInit();
 45
 46        /// <summary>
 47        /// </summary>
 48        [JsonProperty(PropertyName = "id")]
 3649        public System.Guid Id { get; private set; }
 50
 51        /// <summary>
 52        /// </summary>
 53        [JsonProperty(PropertyName = "name")]
 3454        public string Name { get; private set; }
 55
 56        /// <summary>
 57        /// Gets possible values include: 'Classification', 'ObjectDetection'
 58        /// </summary>
 59        [JsonProperty(PropertyName = "type")]
 060        public string Type { get; private set; }
 61
 62        /// <summary>
 63        /// </summary>
 64        [JsonProperty(PropertyName = "exportable")]
 3465        public bool Exportable { get; private set; }
 66
 67        /// <summary>
 68        /// </summary>
 69        [JsonProperty(PropertyName = "enabled")]
 070        public bool Enabled { get; private set; }
 71
 72    }
 73}