Example #1
0
 internal OrganizationDetails ToOrganizationDetails()
 {
     return(new OrganizationDetails
     {
         Id = Id,
         AdminDetails = PSKeyVaultCertificateAdministratorDetails.ToAdministratorDetails(AdministratorDetails),
     });
 }
Example #2
0
        internal static List <PSKeyVaultCertificateAdministratorDetails> FromAdministratorDetails(IEnumerable <AdministratorDetails> administratorDetails)
        {
            if (administratorDetails == null || administratorDetails.Count() == 0)
            {
                return(null);
            }

            return(administratorDetails.Select(adminDetails => PSKeyVaultCertificateAdministratorDetails.FromAdministratorDetails(adminDetails)).ToList());
        }
Example #3
0
        internal static PSKeyVaultCertificateOrganizationDetails FromOrganizationalDetails(OrganizationDetails organizationalDetails)
        {
            if (organizationalDetails == null)
            {
                return(null);
            }

            var kvcOrganizationDetails = new PSKeyVaultCertificateOrganizationDetails
            {
                Id = organizationalDetails.Id,
                AdministratorDetails = PSKeyVaultCertificateAdministratorDetails.FromAdministratorDetails(organizationalDetails.AdminDetails),
            };

            return(kvcOrganizationDetails);
        }