< Summary

Class:Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.AggregateRating
Assembly:Microsoft.Azure.CognitiveServices.Search.BingImageSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingImageSearch\src\Generated\ImageSearch\Models\AggregateRating.cs
Covered lines:0
Uncovered lines:8
Coverable lines:8
Total lines:64
Line coverage:0% (0 of 8)
Covered branches:0
Total branches:0

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingImageSearch\src\Generated\ImageSearch\Models\AggregateRating.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.ImageSearch.Models
 8{
 9    using Newtonsoft.Json;
 10    using System.Linq;
 11
 12    /// <summary>
 13    /// Defines the metrics that indicate how well an item was rated by others.
 14    /// </summary>
 15    public partial class AggregateRating : Rating
 16    {
 17        /// <summary>
 18        /// Initializes a new instance of the AggregateRating class.
 19        /// </summary>
 020        public AggregateRating()
 21        {
 22            CustomInit();
 023        }
 24
 25        /// <summary>
 26        /// Initializes a new instance of the AggregateRating class.
 27        /// </summary>
 28        /// <param name="ratingValue">The mean (average) rating. The possible
 29        /// values are 1.0 through 5.0.</param>
 30        /// <param name="text">Text representation of an item.</param>
 31        /// <param name="bestRating">The highest rated review. The possible
 32        /// values are 1.0 through 5.0.</param>
 33        /// <param name="reviewCount">The number of times the recipe has been
 34        /// rated or reviewed.</param>
 35        public AggregateRating(double ratingValue, string text = default(string), double? bestRating = default(double?),
 036            : base(ratingValue, text, bestRating)
 37        {
 038            ReviewCount = reviewCount;
 39            CustomInit();
 040        }
 41
 42        /// <summary>
 43        /// An initialization method that performs custom operations like setting defaults
 44        /// </summary>
 45        partial void CustomInit();
 46
 47        /// <summary>
 48        /// Gets the number of times the recipe has been rated or reviewed.
 49        /// </summary>
 50        [JsonProperty(PropertyName = "reviewCount")]
 051        public int? ReviewCount { get; private set; }
 52
 53        /// <summary>
 54        /// Validate the object.
 55        /// </summary>
 56        /// <exception cref="Rest.ValidationException">
 57        /// Thrown if validation fails
 58        /// </exception>
 59        public override void Validate()
 60        {
 061            base.Validate();
 062        }
 63    }
 64}