< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Latitude()-0%100%
get_Longitude()-0%100%
get_Elevation()-0%100%
Validate()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingLocalSearch\src\Generated\LocalSearch\Models\GeoCoordinates.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.LocalSearch.Models
 8{
 9    using Newtonsoft.Json;
 10    using System.Linq;
 11
 12    public partial class GeoCoordinates
 13    {
 14        /// <summary>
 15        /// Initializes a new instance of the GeoCoordinates class.
 16        /// </summary>
 017        public GeoCoordinates()
 18        {
 19            CustomInit();
 020        }
 21
 22        /// <summary>
 23        /// Initializes a new instance of the GeoCoordinates class.
 24        /// </summary>
 025        public GeoCoordinates(double latitude, double longitude, double? elevation = default(double?))
 26        {
 027            Latitude = latitude;
 028            Longitude = longitude;
 029            Elevation = elevation;
 30            CustomInit();
 031        }
 32
 33        /// <summary>
 34        /// An initialization method that performs custom operations like setting defaults
 35        /// </summary>
 36        partial void CustomInit();
 37
 38        /// <summary>
 39        /// </summary>
 40        [JsonProperty(PropertyName = "latitude")]
 041        public double Latitude { get; set; }
 42
 43        /// <summary>
 44        /// </summary>
 45        [JsonProperty(PropertyName = "longitude")]
 046        public double Longitude { get; set; }
 47
 48        /// <summary>
 49        /// </summary>
 50        [JsonProperty(PropertyName = "elevation")]
 051        public double? Elevation { 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 virtual void Validate()
 60        {
 61            //Nothing to validate
 062        }
 63    }
 64}