< Summary

Class:Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models.ApplicationSettings
Assembly:Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.LUIS.Authoring\src\Generated\Models\ApplicationSettings.cs
Covered lines:4
Uncovered lines:5
Coverable lines:9
Total lines:73
Line coverage:44.4% (4 of 9)
Covered branches:0
Total branches:0

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.LUIS.Authoring\src\Generated\Models\ApplicationSettings.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// The application settings.
 18    /// </summary>
 19    public partial class ApplicationSettings
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the ApplicationSettings class.
 23        /// </summary>
 224        public ApplicationSettings()
 25        {
 26            CustomInit();
 227        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the ApplicationSettings class.
 31        /// </summary>
 32        /// <param name="id">The application ID.</param>
 33        /// <param name="isPublic">Setting your application as public allows
 34        /// other people to use your application's endpoint using their own
 35        /// keys for billing purposes.</param>
 036        public ApplicationSettings(System.Guid id, bool isPublic)
 37        {
 038            Id = id;
 039            IsPublic = isPublic;
 40            CustomInit();
 041        }
 42
 43        /// <summary>
 44        /// An initialization method that performs custom operations like setting defaults
 45        /// </summary>
 46        partial void CustomInit();
 47
 48        /// <summary>
 49        /// Gets or sets the application ID.
 50        /// </summary>
 51        [JsonProperty(PropertyName = "id")]
 352        public System.Guid Id { get; set; }
 53
 54        /// <summary>
 55        /// Gets or sets setting your application as public allows other people
 56        /// to use your application's endpoint using their own keys for billing
 57        /// purposes.
 58        /// </summary>
 59        [JsonProperty(PropertyName = "public")]
 460        public bool IsPublic { get; set; }
 61
 62        /// <summary>
 63        /// Validate the object.
 64        /// </summary>
 65        /// <exception cref="Rest.ValidationException">
 66        /// Thrown if validation fails
 67        /// </exception>
 68        public virtual void Validate()
 69        {
 70            //Nothing to validate
 071        }
 72    }
 73}