< Summary

Class:Microsoft.Azure.CognitiveServices.ContentModerator.Models.CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem
Assembly:Microsoft.Azure.CognitiveServices.Vision.ContentModerator
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ContentModerator\src\Generated\Models\CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem.cs
Covered lines:0
Uncovered lines:13
Coverable lines:13
Total lines:74
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\CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem.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 CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem
 14    {
 15        /// <summary>
 16        /// Initializes a new instance of the
 17        /// CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem
 18        /// class.
 19        /// </summary>
 020        public CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem()
 21        {
 22            CustomInit();
 023        }
 24
 25        /// <summary>
 26        /// Initializes a new instance of the
 27        /// CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem
 28        /// class.
 29        /// </summary>
 30        /// <param name="key">Your key parameter.</param>
 31        /// <param name="value">Your value parameter.</param>
 032        public CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem(string key, string value)
 33        {
 034            Key = key;
 035            Value = value;
 36            CustomInit();
 037        }
 38
 39        /// <summary>
 40        /// An initialization method that performs custom operations like setting defaults
 41        /// </summary>
 42        partial void CustomInit();
 43
 44        /// <summary>
 45        /// Gets or sets your key parameter.
 46        /// </summary>
 47        [JsonProperty(PropertyName = "Key")]
 048        public string Key { get; set; }
 49
 50        /// <summary>
 51        /// Gets or sets your value parameter.
 52        /// </summary>
 53        [JsonProperty(PropertyName = "Value")]
 054        public string Value { get; set; }
 55
 56        /// <summary>
 57        /// Validate the object.
 58        /// </summary>
 59        /// <exception cref="ValidationException">
 60        /// Thrown if validation fails
 61        /// </exception>
 62        public virtual void Validate()
 63        {
 064            if (Key == null)
 65            {
 066                throw new ValidationException(ValidationRules.CannotBeNull, "Key");
 67            }
 068            if (Value == null)
 69            {
 070                throw new ValidationException(ValidationRules.CannotBeNull, "Value");
 71            }
 072        }
 73    }
 74}