< Summary

Class:Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.WebWebGrouping
Assembly:Microsoft.Azure.CognitiveServices.Search.BingWebSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingWebSearch\src\Generated\WebSearch\Models\WebWebGrouping.cs
Covered lines:0
Uncovered lines:9
Coverable lines:9
Total lines:59
Line coverage:0% (0 of 9)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingWebSearch\src\Generated\WebSearch\Models\WebWebGrouping.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.WebSearch.Models
 8{
 9    using Microsoft.Rest;
 10    using Newtonsoft.Json;
 11    using System.Collections;
 12    using System.Collections.Generic;
 13    using System.Linq;
 14
 15    [Newtonsoft.Json.JsonObject("Web/WebGrouping")]
 16    public partial class WebWebGrouping
 17    {
 18        /// <summary>
 19        /// Initializes a new instance of the WebWebGrouping class.
 20        /// </summary>
 021        public WebWebGrouping()
 22        {
 23            CustomInit();
 024        }
 25
 26        /// <summary>
 27        /// Initializes a new instance of the WebWebGrouping class.
 28        /// </summary>
 029        public WebWebGrouping(IList<WebPage> webPages)
 30        {
 031            WebPages = webPages;
 32            CustomInit();
 033        }
 34
 35        /// <summary>
 36        /// An initialization method that performs custom operations like setting defaults
 37        /// </summary>
 38        partial void CustomInit();
 39
 40        /// <summary>
 41        /// </summary>
 42        [JsonProperty(PropertyName = "webPages")]
 043        public IList<WebPage> WebPages { get; set; }
 44
 45        /// <summary>
 46        /// Validate the object.
 47        /// </summary>
 48        /// <exception cref="ValidationException">
 49        /// Thrown if validation fails
 50        /// </exception>
 51        public virtual void Validate()
 52        {
 053            if (WebPages == null)
 54            {
 055                throw new ValidationException(ValidationRules.CannotBeNull, "WebPages");
 56            }
 057        }
 58    }
 59}