< Summary

Class:Microsoft.Azure.KeyVault.Models.IssuerBundle
Assembly:Microsoft.Azure.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Customized\IssuerBundle.cs
C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\IssuerBundle.cs
Covered lines:9
Uncovered lines:8
Coverable lines:17
Total lines:108
Line coverage:52.9% (9 of 17)
Covered branches:1
Total branches:2
Branch coverage:50% (1 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_Id()-100%100%
get_Provider()-100%100%
get_Credentials()-100%100%
get_OrganizationDetails()-100%100%
get_Attributes()-100%100%
.ctor()-100%100%
.ctor(...)-100%100%
get_IssuerIdentifier()-66.67%50%
.ctor()-100%100%
.ctor(...)-0%100%
get_Id()-100%100%
get_Provider()-100%100%
get_Credentials()-100%100%
get_OrganizationDetails()-100%100%
get_Attributes()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Customized\IssuerBundle.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License. See License.txt in the project root for
 3// license information.
 4
 5namespace Microsoft.Azure.KeyVault.Models
 6{
 7    public partial class IssuerBundle
 8    {
 9        /// <summary>
 10        /// Identifier for the issuer object.
 11        /// </summary>
 12        public CertificateIssuerIdentifier IssuerIdentifier
 13        {
 14            get
 15            {
 416                if (!string.IsNullOrWhiteSpace(Id))
 417                    return new CertificateIssuerIdentifier(Id);
 18                else
 019                    return null;
 20            }
 21        }
 22    }
 23}

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\IssuerBundle.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.KeyVault.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// The issuer for Key Vault certificate.
 18    /// </summary>
 19    public partial class IssuerBundle
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the IssuerBundle class.
 23        /// </summary>
 1124        public IssuerBundle()
 25        {
 26            CustomInit();
 1127        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the IssuerBundle class.
 31        /// </summary>
 32        /// <param name="id">Identifier for the issuer object.</param>
 33        /// <param name="provider">The issuer provider.</param>
 34        /// <param name="credentials">The credentials to be used for the
 35        /// issuer.</param>
 36        /// <param name="organizationDetails">Details of the organization as
 37        /// provided to the issuer.</param>
 38        /// <param name="attributes">Attributes of the issuer object.</param>
 039        public IssuerBundle(string id = default(string), string provider = default(string), IssuerCredentials credential
 40        {
 041            Id = id;
 042            Provider = provider;
 043            Credentials = credentials;
 044            OrganizationDetails = organizationDetails;
 045            Attributes = attributes;
 46            CustomInit();
 047        }
 48
 49        /// <summary>
 50        /// An initialization method that performs custom operations like setting defaults
 51        /// </summary>
 52        partial void CustomInit();
 53
 54        /// <summary>
 55        /// Gets identifier for the issuer object.
 56        /// </summary>
 57        [JsonProperty(PropertyName = "id")]
 1158        public string Id { get; private set; }
 59
 60        /// <summary>
 61        /// Gets or sets the issuer provider.
 62        /// </summary>
 63        [JsonProperty(PropertyName = "provider")]
 1564        public string Provider { get; set; }
 65
 66        /// <summary>
 67        /// Gets or sets the credentials to be used for the issuer.
 68        /// </summary>
 69        [JsonProperty(PropertyName = "credentials")]
 1470        public IssuerCredentials Credentials { get; set; }
 71
 72        /// <summary>
 73        /// Gets or sets details of the organization as provided to the issuer.
 74        /// </summary>
 75        [JsonProperty(PropertyName = "org_details")]
 1476        public OrganizationDetails OrganizationDetails { get; set; }
 77
 78        /// <summary>
 79        /// Gets or sets attributes of the issuer object.
 80        /// </summary>
 81        [JsonProperty(PropertyName = "attributes")]
 1682        public IssuerAttributes Attributes { get; set; }
 83
 84    }
 85}