< Summary

Class:Microsoft.Azure.KeyVault.Models.AdministratorDetails
Assembly:Microsoft.Azure.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\AdministratorDetails.cs
Covered lines:6
Uncovered lines:6
Coverable lines:12
Total lines:75
Line coverage:50% (6 of 12)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_FirstName()-100%100%
get_LastName()-100%100%
get_EmailAddress()-100%100%
get_Phone()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\AdministratorDetails.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    /// Details of the organization administrator of the certificate issuer.
 18    /// </summary>
 19    public partial class AdministratorDetails
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the AdministratorDetails class.
 23        /// </summary>
 1424        public AdministratorDetails()
 25        {
 26            CustomInit();
 1427        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the AdministratorDetails class.
 31        /// </summary>
 32        /// <param name="firstName">First name.</param>
 33        /// <param name="lastName">Last name.</param>
 34        /// <param name="emailAddress">Email addresss.</param>
 35        /// <param name="phone">Phone number.</param>
 036        public AdministratorDetails(string firstName = default(string), string lastName = default(string), string emailA
 37        {
 038            FirstName = firstName;
 039            LastName = lastName;
 040            EmailAddress = emailAddress;
 041            Phone = phone;
 42            CustomInit();
 043        }
 44
 45        /// <summary>
 46        /// An initialization method that performs custom operations like setting defaults
 47        /// </summary>
 48        partial void CustomInit();
 49
 50        /// <summary>
 51        /// Gets or sets first name.
 52        /// </summary>
 53        [JsonProperty(PropertyName = "first_name")]
 1854        public string FirstName { get; set; }
 55
 56        /// <summary>
 57        /// Gets or sets last name.
 58        /// </summary>
 59        [JsonProperty(PropertyName = "last_name")]
 1860        public string LastName { get; set; }
 61
 62        /// <summary>
 63        /// Gets or sets email addresss.
 64        /// </summary>
 65        [JsonProperty(PropertyName = "email")]
 1866        public string EmailAddress { get; set; }
 67
 68        /// <summary>
 69        /// Gets or sets phone number.
 70        /// </summary>
 71        [JsonProperty(PropertyName = "phone")]
 1872        public string Phone { get; set; }
 73
 74    }
 75}