< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.ComputerVision.Models.CelebrityResults
Assembly:Microsoft.Azure.CognitiveServices.Vision.ComputerVision
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ComputerVision\src\Generated\Models\CelebrityResults.cs
Covered lines:3
Uncovered lines:7
Coverable lines:10
Total lines:69
Line coverage:30% (3 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Celebrities()-100%100%
get_RequestId()-0%100%
get_Metadata()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ComputerVision\src\Generated\Models\CelebrityResults.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.Collections;
 15    using System.Collections.Generic;
 16    using System.Linq;
 17
 18    /// <summary>
 19    /// Result of domain-specific classifications for the domain of
 20    /// celebrities.
 21    /// </summary>
 22    public partial class CelebrityResults
 23    {
 24        /// <summary>
 25        /// Initializes a new instance of the CelebrityResults class.
 26        /// </summary>
 427        public CelebrityResults()
 28        {
 29            CustomInit();
 430        }
 31
 32        /// <summary>
 33        /// Initializes a new instance of the CelebrityResults class.
 34        /// </summary>
 35        /// <param name="celebrities">List of celebrities recognized in the
 36        /// image.</param>
 37        /// <param name="requestId">Id of the REST API request.</param>
 038        public CelebrityResults(IList<CelebritiesModel> celebrities = default(IList<CelebritiesModel>), string requestId
 39        {
 040            Celebrities = celebrities;
 041            RequestId = requestId;
 042            Metadata = metadata;
 43            CustomInit();
 044        }
 45
 46        /// <summary>
 47        /// An initialization method that performs custom operations like setting defaults
 48        /// </summary>
 49        partial void CustomInit();
 50
 51        /// <summary>
 52        /// Gets or sets list of celebrities recognized in the image.
 53        /// </summary>
 54        [JsonProperty(PropertyName = "celebrities")]
 1655        public IList<CelebritiesModel> Celebrities { get; set; }
 56
 57        /// <summary>
 58        /// Gets or sets id of the REST API request.
 59        /// </summary>
 60        [JsonProperty(PropertyName = "requestId")]
 061        public string RequestId { get; set; }
 62
 63        /// <summary>
 64        /// </summary>
 65        [JsonProperty(PropertyName = "metadata")]
 066        public ImageMetadata Metadata { get; set; }
 67
 68    }
 69}