< Summary

Class:Microsoft.Azure.CognitiveServices.ContentModerator.Models.VideoFrameBodyItemReviewerResultTagsItem
Assembly:Microsoft.Azure.CognitiveServices.Vision.ContentModerator
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ContentModerator\src\Generated\Models\VideoFrameBodyItemReviewerResultTagsItem.cs
Covered lines:0
Uncovered lines:13
Coverable lines:13
Total lines:72
Line coverage:0% (0 of 13)
Covered branches:0
Total branches:4
Branch coverage:0% (0 of 4)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Key()-0%100%
get_Value()-0%100%
Validate()-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ContentModerator\src\Generated\Models\VideoFrameBodyItemReviewerResultTagsItem.cs

#LineLine coverage
 1// <auto-generated>
 2// Code generated by Microsoft (R) AutoRest Code Generator.
 3// Changes may cause incorrect behavior and will be lost if the code is
 4// regenerated.
 5// </auto-generated>
 6
 7namespace Microsoft.Azure.CognitiveServices.ContentModerator.Models
 8{
 9    using Microsoft.Rest;
 10    using Newtonsoft.Json;
 11    using System.Linq;
 12
 13    public partial class VideoFrameBodyItemReviewerResultTagsItem
 14    {
 15        /// <summary>
 16        /// Initializes a new instance of the
 17        /// VideoFrameBodyItemReviewerResultTagsItem class.
 18        /// </summary>
 019        public VideoFrameBodyItemReviewerResultTagsItem()
 20        {
 21            CustomInit();
 022        }
 23
 24        /// <summary>
 25        /// Initializes a new instance of the
 26        /// VideoFrameBodyItemReviewerResultTagsItem class.
 27        /// </summary>
 28        /// <param name="key">Your key parameter.</param>
 29        /// <param name="value">Your value parameter.</param>
 030        public VideoFrameBodyItemReviewerResultTagsItem(string key, string value)
 31        {
 032            Key = key;
 033            Value = value;
 34            CustomInit();
 035        }
 36
 37        /// <summary>
 38        /// An initialization method that performs custom operations like setting defaults
 39        /// </summary>
 40        partial void CustomInit();
 41
 42        /// <summary>
 43        /// Gets or sets your key parameter.
 44        /// </summary>
 45        [JsonProperty(PropertyName = "Key")]
 046        public string Key { get; set; }
 47
 48        /// <summary>
 49        /// Gets or sets your value parameter.
 50        /// </summary>
 51        [JsonProperty(PropertyName = "Value")]
 052        public string Value { get; set; }
 53
 54        /// <summary>
 55        /// Validate the object.
 56        /// </summary>
 57        /// <exception cref="ValidationException">
 58        /// Thrown if validation fails
 59        /// </exception>
 60        public virtual void Validate()
 61        {
 062            if (Key == null)
 63            {
 064                throw new ValidationException(ValidationRules.CannotBeNull, "Key");
 65            }
 066            if (Value == null)
 67            {
 068                throw new ValidationException(ValidationRules.CannotBeNull, "Value");
 69            }
 070        }
 71    }
 72}