< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.ComputerVision.Models.Category
Assembly:Microsoft.Azure.CognitiveServices.Vision.ComputerVision
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ComputerVision\src\Generated\Models\Category.cs
Covered lines:4
Uncovered lines:6
Coverable lines:10
Total lines:67
Line coverage:40% (4 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Name()-100%100%
get_Score()-100%100%
get_Detail()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ComputerVision\src\Generated\Models\Category.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.ComputerVision.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// An object describing identified category.
 18    /// </summary>
 19    public partial class Category
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the Category class.
 23        /// </summary>
 824        public Category()
 25        {
 26            CustomInit();
 827        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the Category class.
 31        /// </summary>
 32        /// <param name="name">Name of the category.</param>
 33        /// <param name="score">Scoring of the category.</param>
 34        /// <param name="detail">Details of the identified category.</param>
 035        public Category(string name = default(string), double score = default(double), CategoryDetail detail = default(C
 36        {
 037            Name = name;
 038            Score = score;
 039            Detail = detail;
 40            CustomInit();
 041        }
 42
 43        /// <summary>
 44        /// An initialization method that performs custom operations like setting defaults
 45        /// </summary>
 46        partial void CustomInit();
 47
 48        /// <summary>
 49        /// Gets or sets name of the category.
 50        /// </summary>
 51        [JsonProperty(PropertyName = "name")]
 1252        public string Name { get; set; }
 53
 54        /// <summary>
 55        /// Gets or sets scoring of the category.
 56        /// </summary>
 57        [JsonProperty(PropertyName = "score")]
 1258        public double Score { get; set; }
 59
 60        /// <summary>
 61        /// Gets or sets details of the identified category.
 62        /// </summary>
 63        [JsonProperty(PropertyName = "detail")]
 064        public CategoryDetail Detail { get; set; }
 65
 66    }
 67}