< Summary

Class:Microsoft.Azure.CognitiveServices.Search.VideoSearch.Models.VideoDetails
Assembly:Microsoft.Azure.CognitiveServices.Search.BingVideoSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingVideoSearch\src\Generated\VideoSearch\Models\VideoDetails.cs
Covered lines:4
Uncovered lines:4
Coverable lines:8
Total lines:52
Line coverage:50% (4 of 8)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_RelatedVideos()-100%100%
get_VideoResult()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingVideoSearch\src\Generated\VideoSearch\Models\VideoDetails.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.Search.VideoSearch.Models
 8{
 9    using Newtonsoft.Json;
 10    using System.Linq;
 11
 12    public partial class VideoDetails : Response
 13    {
 14        /// <summary>
 15        /// Initializes a new instance of the VideoDetails class.
 16        /// </summary>
 217        public VideoDetails()
 18        {
 19            CustomInit();
 220        }
 21
 22        /// <summary>
 23        /// Initializes a new instance of the VideoDetails class.
 24        /// </summary>
 25        /// <param name="id">A String identifier.</param>
 26        /// <param name="webSearchUrl">The URL To Bing's search result for this
 27        /// item.</param>
 28        public VideoDetails(string id = default(string), string webSearchUrl = default(string), VideosModule relatedVide
 029            : base(id, webSearchUrl)
 30        {
 031            RelatedVideos = relatedVideos;
 032            VideoResult = videoResult;
 33            CustomInit();
 034        }
 35
 36        /// <summary>
 37        /// An initialization method that performs custom operations like setting defaults
 38        /// </summary>
 39        partial void CustomInit();
 40
 41        /// <summary>
 42        /// </summary>
 43        [JsonProperty(PropertyName = "relatedVideos")]
 1044        public VideosModule RelatedVideos { get; private set; }
 45
 46        /// <summary>
 47        /// </summary>
 48        [JsonProperty(PropertyName = "videoResult")]
 1049        public VideoObject VideoResult { get; private set; }
 50
 51    }
 52}