< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_Name()-100%100%
get_Contents()-100%100%
get_TagIds()-100%100%
get_Regions()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\ImageFileCreateEntry.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.Collections;
 15    using System.Collections.Generic;
 16    using System.Linq;
 17
 18    public partial class ImageFileCreateEntry
 19    {
 20        /// <summary>
 21        /// Initializes a new instance of the ImageFileCreateEntry class.
 22        /// </summary>
 023        public ImageFileCreateEntry()
 24        {
 25            CustomInit();
 026        }
 27
 28        /// <summary>
 29        /// Initializes a new instance of the ImageFileCreateEntry class.
 30        /// </summary>
 831        public ImageFileCreateEntry(string name = default(string), byte[] contents = default(byte[]), IList<System.Guid>
 32        {
 833            Name = name;
 834            Contents = contents;
 835            TagIds = tagIds;
 836            Regions = regions;
 37            CustomInit();
 838        }
 39
 40        /// <summary>
 41        /// An initialization method that performs custom operations like setting defaults
 42        /// </summary>
 43        partial void CustomInit();
 44
 45        /// <summary>
 46        /// </summary>
 47        [JsonProperty(PropertyName = "name")]
 1648        public string Name { get; set; }
 49
 50        /// <summary>
 51        /// </summary>
 52        [JsonProperty(PropertyName = "contents")]
 1653        public byte[] Contents { get; set; }
 54
 55        /// <summary>
 56        /// </summary>
 57        [JsonProperty(PropertyName = "tagIds")]
 1658        public IList<System.Guid> TagIds { get; set; }
 59
 60        /// <summary>
 61        /// </summary>
 62        [JsonProperty(PropertyName = "regions")]
 1663        public IList<Region> Regions { get; set; }
 64
 65    }
 66}